update http

This commit is contained in:
影舞者 2022-01-07 17:58:34 +08:00
parent 49a3b94c53
commit a56144d84a

View File

@ -7,6 +7,7 @@ import (
"github.com/shadow1ng/fscan/common"
"net/http"
"strings"
"time"
)
//go:embed pocs
@ -20,9 +21,23 @@ func WebScan(info *common.HostInfo) {
Execute(pocinfo)
return
}
for _, infostr := range info.Infostr {
pocinfo.PocName = lib.CheckInfoPoc(infostr)
Execute(pocinfo)
var flag bool
go func() {
for _, infostr := range info.Infostr {
pocinfo.PocName = lib.CheckInfoPoc(infostr)
Execute(pocinfo)
}
flag = true
}()
go func() {
time.Sleep(60 * time.Second)
flag = true
}()
for {
if flag {
return
}
}
}