修改icmp发包模式,更适合大规模探测。

This commit is contained in:
shadow1ng 2021-02-05 16:08:28 +08:00
parent 8e148c0e6e
commit 9ba3ec7054

View File

@ -87,11 +87,12 @@ func IcmpCheck(hostslist []string) {
write(host, conn) write(host, conn)
} }
if len(hostslist) > 100 { if len(hostslist) > 255 {
time.Sleep(6 * time.Second) time.Sleep(6 * time.Second)
} else { } else {
time.Sleep(3 * time.Second) time.Sleep(3 * time.Second)
} }
endflag = true endflag = true
close(chanHosts) close(chanHosts)
conn.Close() conn.Close()