Commit graph

129 commits

Author SHA1 Message Date
dmiller
1641d13cf9 Defensive checks for null or corrupt structures 2026-06-10 21:39:43 +00:00
dmiller
6a4c9d48b3 Move NetBlock classes from TargetGroup to libnetutil/NetBlock 2026-06-10 21:39:40 +00:00
dmiller
6e18e8d89f deduplicate some macros 2026-06-10 21:39:37 +00:00
dmiller
95d380b836 Bump copyright date to 2026 [skip ci] 2026-02-16 22:33:40 +00:00
dmiller
6db5c9cb85 Bump copyright date 2025-02-26 17:44:43 +00:00
dmiller
390e0266db Consolidate private IP checking. Add IPv6. 2025-01-16 23:00:13 +00:00
dmiller
03c9f34959 Fix sign and width issues around max_ips_to_scan. Fixes #2838. Fixes #2836 2024-06-04 18:22:17 +00:00
dmiller
fe5bbce0a4 Increase number of DNS names to look up per batch. 2024-05-13 14:31:35 +00:00
dmiller
0896ed3f5d Simplify mass_dns for the case of requesting A and AAAA records 2024-05-13 14:31:32 +00:00
dmiller
d70f66a761 Use mass_dns to do forward lookups. Fixes #1451 2024-05-01 22:19:32 +00:00
dmiller
cc2b798375 Make NetBlockRandomIPv4 responsible for tracking number of random addrs 2024-05-01 22:19:31 +00:00
dmiller
b940270375 Move random address generation to TargetGroup/NetBlock 2024-05-01 22:19:29 +00:00
dmiller
f999182d0f Bump date and reapply header templates 2024-02-28 18:46:45 +00:00
dmiller
6f6b2de214 Apply new license templates, bump copyright date 2023-04-14 17:11:46 +00:00
dmiller
dd690b3e0b Bump copyright date and update some links [ci skip] 2022-02-18 17:38:46 +00:00
dmiller
3fe254abcc Suggest a reason why '-' cannot be resolved 2021-12-16 23:29:15 +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
c9b7c2f590 Moar const 2021-04-26 17:58:01 +00:00
dmiller
ef8213a36c Reintegrate Nmap 7.90 release branch 2020-10-05 23:00:30 +00:00
dmiller
cb418ab480 Fix a memory leak of 104 bytes per hostname resolved. 2019-06-21 17:00:09 +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
9cfc2652d5 Remove unpublished '*all' syntax in favor of --resolve-all option 2017-12-06 04:32:24 +00:00
dmiller
f1488554bd Add the --resolve-all option 2017-12-06 04:17:06 +00:00
dmiller
6c62fb6a74 Ensure resolveall only affects hostname-derived NetBlocks 2017-08-07 19:46:27 +00:00
dmiller
c083d55a3b Resolveall feature. Fixes #949 2017-08-07 14:25:15 +00:00
dmiller
a66e75173e Keep resolved, scanned addresses separate from unscanned addresses. 2017-08-07 14:25:13 +00:00
dmiller
527c653a0b Correct a dumb syntax mistake 2017-08-07 03:16:44 +00:00
dmiller
3537306f64 Only one memset is required 2017-08-06 17:29:57 +00:00
dmiller
cc358f1ede New set_addr function for NetBlockIPv4Ranges 2017-08-06 17:29:56 +00:00
dmiller
817dd2a944 Move TargetGroup class to TargetGroup files; make NetBlock class private 2017-08-06 03:20:40 +00:00
dmiller
675ae460b3 Move NewTargets class to its own h/cc files 2017-08-05 21:11:00 +00:00
dmiller
f5d29c490f Move some private classes to TargetGroup.cc from TargetGroup.h 2017-08-05 20:49:54 +00:00
dmiller
cde6853481 Simplify get_next_host and name resolution. 2017-08-04 02:05:20 +00:00
dmiller
d5e7649829 Simplify AF checking for literal IP addresses. 2017-08-03 22:05:18 +00:00
dmiller
9c7ea727a7 Update license terms for 2017 2017-06-07 12:32:38 +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
6e33d6ac3c Bump date in copyright headers 2016-04-04 15:38:44 +00:00
dmiller
40dc3c5830 Move global_structures.h back into nmap.h now that things are sorted out better 2015-07-02 03:09:29 +00:00
dmiller
ea4096c681 Strip or relocate more includes from nmap.h 2015-07-01 21:25:39 +00:00
dmiller
68409b2226 Update copyright date to 2015 2015-06-03 13:01:29 +00:00
dmiller
be9793fe45 Remove accidental non-standard alternative token 'or' 2015-04-06 00:28:35 +00:00
dmiller
c0628fd141 Report IPv4 and IPv6 addresses resolved for each host
Previously, we would only request IPv4 addresses by default, or only
IPv6 when scanning with -6. Now, we'll request both (by not passing an
address family in the hints to getaddrinfo) and report them all in the
"Other addresses" line. This should encourage more users to scan with
-6. Additionally, it allows us to catch and report attempts to scan
IPv6-only hosts via IPv4, where previously we would just say "Failed to
resolve"

Closes #76
2015-03-11 04:14:26 +00:00
dmiller
e6659f1d90 Fix initializer for struct in6_addr on AIX 2014-09-09 01:59:08 +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
a80c90608c sed -i 's/if ( /if (/g' *.cc *.h; sed -i 's/for ( /for (/g' *.cc *.h; sed -i 's/( /(/g' nmap_amigaos.h tcpip.h service_scan.cc
There's still quite a lot of code like this, nse_openssl.cc being most
messy IMHO. Also, I left out "if( something )" syntax.
2014-06-25 15:40:54 +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