mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 12:52:44 +08:00
修改icmp发包模式,更适合大规模探测。
This commit is contained in:
parent
8e148c0e6e
commit
9ba3ec7054
@ -87,11 +87,12 @@ func IcmpCheck(hostslist []string) {
|
||||
write(host, conn)
|
||||
}
|
||||
|
||||
if len(hostslist) > 100 {
|
||||
if len(hostslist) > 255 {
|
||||
time.Sleep(6 * time.Second)
|
||||
} else {
|
||||
time.Sleep(3 * time.Second)
|
||||
}
|
||||
|
||||
endflag = true
|
||||
close(chanHosts)
|
||||
conn.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user