mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-16 14:22:36 +08:00
update http
This commit is contained in:
parent
49a3b94c53
commit
a56144d84a
@ -7,6 +7,7 @@ import (
|
|||||||
"github.com/shadow1ng/fscan/common"
|
"github.com/shadow1ng/fscan/common"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed pocs
|
//go:embed pocs
|
||||||
@ -20,9 +21,23 @@ func WebScan(info *common.HostInfo) {
|
|||||||
Execute(pocinfo)
|
Execute(pocinfo)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, infostr := range info.Infostr {
|
var flag bool
|
||||||
pocinfo.PocName = lib.CheckInfoPoc(infostr)
|
go func() {
|
||||||
Execute(pocinfo)
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user