mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-27 05:31:53 +08:00
update http
This commit is contained in:
@@ -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,10 +21,24 @@ func WebScan(info *common.HostInfo) {
|
|||||||
Execute(pocinfo)
|
Execute(pocinfo)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
var flag bool
|
||||||
|
go func() {
|
||||||
for _, infostr := range info.Infostr {
|
for _, infostr := range info.Infostr {
|
||||||
pocinfo.PocName = lib.CheckInfoPoc(infostr)
|
pocinfo.PocName = lib.CheckInfoPoc(infostr)
|
||||||
Execute(pocinfo)
|
Execute(pocinfo)
|
||||||
}
|
}
|
||||||
|
flag = true
|
||||||
|
}()
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
time.Sleep(60 * time.Second)
|
||||||
|
flag = true
|
||||||
|
}()
|
||||||
|
for {
|
||||||
|
if flag {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func Execute(PocInfo common.PocInfo) {
|
func Execute(PocInfo common.PocInfo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user