mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 21:02:44 +08:00
修改icmp发包模式,更适合大规模探测。
This commit is contained in:
parent
8e148c0e6e
commit
9ba3ec7054
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user