mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Don't scan infinite random when no targets specified
This commit is contained in:
2
nmap.cc
2
nmap.cc
@@ -2094,7 +2094,7 @@ int nmap_main(int argc, char *argv[]) {
|
||||
if (o.ping_group_sz < o.minHostGroupSz())
|
||||
o.ping_group_sz = o.minHostGroupSz();
|
||||
HostGroupState hstate(o.ping_group_sz, o.randomize_hosts,
|
||||
o.generate_random_ips ? o.max_ips_to_scan : 0, argc, (const char **) argv);
|
||||
o.generate_random_ips, o.max_ips_to_scan, argc, (const char **) argv);
|
||||
|
||||
do {
|
||||
ideal_scan_group_sz = determineScanGroupSize(o.numhosts_scanned, &ports);
|
||||
|
||||
Reference in New Issue
Block a user