dmiller
b2c9062f90
Handle uppercase PTR records. Fixes #2068
2020-06-21 15:45:22 +00:00
dmiller
6753d2efdd
Report actual number of hosts being resolved. Fixes #1918
2020-02-20 16:35:22 +00:00
dmiller
a2c75e0ef4
Abstract nsock logging function to avoid nsock.h inclusion in output.h
2020-01-11 16:03:28 +00:00
dmiller
d639a53088
Bump copyright date in license headers
2019-05-28 21:36:04 +00:00
fyodor
ff62300249
Bump copyright dates to 2018 and slightly improve wording (doesn't change meaning) of Nmap license header text
2018-01-28 21:18:17 +00:00
dmiller
d9b66b20a3
Rename o.resolve_all to o.always_resolve
...
This is the flag for the -R option. "always" is more appropriate than
"all," since "resolveall.nse" does something different, and there is a
"resolve_all" function that does that thing as well, unrelated to the -R
option.
2017-12-06 04:17:04 +00:00
dmiller
9c7ea727a7
Update license terms for 2017
2017-06-07 12:32:38 +00:00
dmiller
0ff217dc53
Re-add some needed includes on Windows
2017-04-20 17:24:33 +00:00
dmiller
891c3be3b9
remove tcpip.h from other headers' includes
2017-04-19 13:53:57 +00:00
dmiller
772bd8d824
Correct typos: receive, successfully, length
2017-03-15 02:23:09 +00:00
fyodor
4bd67aa2fb
Update the Nmap license/header text to reflect latest updates to docs/legal-notices.xml
2016-12-14 00:12:23 +00:00
dmiller
69d44d9738
Compare GUID case-insensitive; Npcap returns it capitalized
2016-11-28 15:11:51 +00:00
dmiller
2c6666cb34
Avoid crash if Npcap is not present when doing reverse DNS.
2016-09-01 03:34:22 +00:00
dmiller
74cade6f39
Avoid some theoretical null pointer derefs
2016-07-30 03:54:00 +00:00
vincent
32efc8b28c
Use FQDN_LEN instead of MAXHOSTNAMELEN for DNS name buffers
...
This closes #140 (issue #140 ), namely "Use correct lengths
for FQDN, not MAXHOSTNAMELEN"
2016-07-26 14:06:22 +00:00
dmiller
274027bf61
Better CNAME handling in mass_rdns.
...
If mass_rdns gets a CNAME and PTR for that name in one answer, parse
both. This means that the majority of CNAME answers can now be handled
without falling back to system resolver. A test of 40K random IPs
produced 21 CNAME answers, 18 of which had an associated PTR that was
correctly parsed in this way.
2016-07-23 00:22:54 +00:00
dmiller
28ff5841bc
DNS::Factory::ptrToIp will now return false if sockaddr_storate_inet_pton fails
2016-07-23 00:22:53 +00:00
abhishek
0c1d68d6de
Falls back to "getnameinfo" for truncated replies in reverse DNS resolver. Closes #434 and #400 , fixes #364 and #103 .
2016-07-19 08:33:01 +00:00
abhishek
9e3c7d526d
implements map data structure to speed up search in process_result() of nmap_dns. Closes #401
2016-06-27 20:19:11 +00:00
dmiller
6e33d6ac3c
Bump date in copyright headers
2016-04-04 15:38:44 +00:00
dmiller
5bf6a0310d
Work around a C++ standard defect
...
Reported on Solaris 5.9:
nmap_dns.cc:1320: error: no match for 'operator!=' in 'c !=
std::basic_string<_CharT, _Traits, _Alloc>::rend() [with _CharT = char,
_Traits = std::char_traits<char>, _Alloc = std::allocator<char>]()'
Reference:
https://stackoverflow.com/questions/2135094/gcc-reverse-iterator-comparison-operators-missing
2016-02-22 13:55:25 +00:00
dmiller
afde101914
Fix a name collision. Fixes #219
2015-10-07 17:49:24 +00:00
dmiller
ee1d6e4535
Fix undeclared type in Visual Studio. Fixes #220
2015-10-07 17:49:23 +00:00
dmiller
f92265c91b
Fix a double-free and cache problem in nmap_dns
2015-08-29 11:32:52 +00:00
dmiller
aa359738c1
Use POSIX-specified s6_addr element of struct in6_addr. http://seclists.org/nmap-dev/2015/q3/174
2015-08-01 19:42:34 +00:00
gio
6fdae80e41
Update request id on resend, bug discovered by bonsaiviking
2015-07-30 06:27:53 +00:00
gio
30b63ffa68
Remove non used lookup_cached_host, add whiteline between method definitions
2015-07-30 06:27:50 +00:00
gio
18b6b9c350
Use nbase u8 as buffer type
2015-07-30 06:27:46 +00:00
gio
aec4aac98f
Fixed possible stack overflow with special crafted input discovered by bonsaiviking with fuzzing
2015-07-30 06:27:41 +00:00
gio
361f18fa87
Finer tests discovered and fixed other subtle bug thanks to them
2015-07-30 06:27:38 +00:00
gio
94e8a7acd3
Implemented more testing fixed some subtle bug thanks to it
2015-07-30 06:27:35 +00:00
gio
65aea074d1
Split declarations to header
2015-07-30 06:27:25 +00:00
gio
72c32299a0
Initialize DNS request id to random number
2015-07-30 06:27:22 +00:00
gio
4bf2731f44
Try to process also truncated DNS packets
2015-07-30 06:27:19 +00:00
gio
3039ebe9c0
Fixed error handling, a NXDomain end resolution tentatives
2015-07-30 06:27:16 +00:00
gio
15840e1793
Move sockadd_storage helpers functions to appropriate files
2015-07-30 06:27:13 +00:00
gio
e090e0901d
Ported DNS answers parsing to IPv6
2015-07-30 06:27:09 +00:00
gio
d10e155f30
Add human readeable DNS ipv* packets generation
2015-07-30 06:27:06 +00:00
gio
cdd487580b
Port cache and /etc/hosts reading to ipv6
2015-07-30 06:27:03 +00:00
henri
b55ff2d68f
Don't associate nsock logging info to a nspool.
...
Make current loglevel and current log callback global
to the library. Attaching them to the nsock pool doesn't
bring any benefit and prevents from logging activity in
code sections that don't have access to a pool (such as
proxy chain specification parsing).
Updated external calls and nsock tests accordingly.
2015-06-27 08:21:53 +00:00
henri
b75233ce98
Consistently renamed nsi_XXX calls into nsock_iod_XXX
...
This is part of the effort to make nsock expose only
nsock_ prefixed symbols and simplify the API.
2015-06-27 08:21:33 +00:00
henri
0348359f60
Enforce nsock naming scheme.
...
convert nsp_* calls into nsock_pool_*. Separate words with underscores
where appropriate.
2015-06-27 08:21:16 +00:00
dmiller
84d0e45641
Remove some unneeded includes of utils.h
2015-06-23 15:52:55 +00:00
dmiller
68409b2226
Update copyright date to 2015
2015-06-03 13:01:29 +00:00
dmiller
d1b34d407b
Don't try nameservers from a different AF than our spoofed source.
2014-11-17 19:35:49 +00:00
dmiller
5adfb3b1de
Update copyright notice to 2014
2014-08-16 01:52:33 +00:00
jay
8d5ec9e310
Reapply r33420, r33421. Fix a missing right parenthesis. https://xkcd.com/859/
2014-08-15 12:09:22 +00:00
fyodor
f6f59a7cd7
Auto regeneration with latest template files, etc.
2014-08-13 22:57:43 +00:00
jay
d4cf544df6
Fix a missing bracket at the end of the IMPORTANT NMAP LICENSE TERMS part in each file
2014-08-02 19:29:50 +00:00
d33tah
421176fc00
Get rid of double newline at the EOF I accidentally introduced in the
...
last commit.
2014-06-18 11:30:02 +00:00