mirror of
https://github.com/sairson/Yasso.git
synced 2026-06-17 07:38:13 +08:00
修改部分错误,和更改ants的调用逻辑,使得扫描速度稳定且误报减少
This commit is contained in:
@@ -77,6 +77,8 @@ func ping(ip string) bool {
|
||||
cmd = exec.Command("/bin/bash", "-c", "ping -c 1 -w 1 "+ip+" >/dev/null && echo true || echo false")
|
||||
case "darwin":
|
||||
cmd = exec.Command("/bin/bash", "-c", "ping -c 1 -w 1 "+ip+" >/dev/null && echo true || echo false")
|
||||
default:
|
||||
cmd = exec.Command("/bin/bash", "-c", "ping -c 1 -w 1 "+ip+" >/dev/null && echo true || echo false")
|
||||
}
|
||||
info := bytes.Buffer{}
|
||||
cmd.Stdout = &info
|
||||
|
||||
Reference in New Issue
Block a user