1
0
mirror of https://github.com/sairson/Yasso.git synced 2026-06-17 07:38:13 +08:00

修改部分错误,和更改ants的调用逻辑,使得扫描速度稳定且误报减少

This commit is contained in:
sairson
2022-01-09 11:06:14 +08:00
parent 6d71582279
commit d7556c9f77

View File

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