1
0
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:
dmiller
2024-06-05 16:09:58 +00:00
parent c6ffdbf7ae
commit a908872dae
3 changed files with 4 additions and 4 deletions

View File

@@ -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);