dmiller
f999182d0f
Bump date and reapply header templates
2024-02-28 18:46:45 +00:00
dmiller
e7f8cd820b
Use TIMEVAL_FSEC_SUBTRACT for clarity
2024-02-26 18:29:10 +00:00
dmiller
e633a21b5f
Avoid recursion in DNS parsing; check label/name lengths
2023-05-19 01:43:17 +00:00
dmiller
6f6b2de214
Apply new license templates, bump copyright date
2023-04-14 17:11:46 +00:00
dmiller
3c6c84b5f7
Avoid copying target/source addr data when a pointer will do
2022-10-31 20:50:19 +00:00
dmiller
d969fd00ca
Remove hosts file location for Win95/98/ME from search
2022-06-28 17:40:30 +00:00
dmiller
dd690b3e0b
Bump copyright date and update some links [ci skip]
2022-02-18 17:38:46 +00:00
fyodor
3aec3f3a07
Update to latest copyright templates. Main change is that Insecure.Com LLC is now Nmap Software LLC
2021-11-23 16:04:37 +00:00
dmiller
74e066d356
Another round of const
2021-04-27 19:22:12 +00:00
dmiller
3adaa69cb2
Fix an out-of-bounds memory access when parsing PTR records
2021-04-27 19:22:08 +00:00
dmiller
ef2bafb09c
Report system error message when fopen fails
2020-12-28 17:51:16 +00:00
dmiller
ef8213a36c
Reintegrate Nmap 7.90 release branch
2020-10-05 23:00:30 +00:00
dmiller
9c1cfd8405
Correctly check for unsigned subtraction underflow.
2020-09-09 21:34:56 +00:00
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