mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-14 05:12:36 +08:00
update webscan timeout
This commit is contained in:
parent
a56144d84a
commit
bdeaae9dcf
@ -17,23 +17,25 @@ func WebScan(info *common.HostInfo) {
|
||||
var pocinfo = common.Pocinfo
|
||||
buf := strings.Split(info.Url, "/")
|
||||
pocinfo.Target = strings.Join(buf[:3], "/")
|
||||
if pocinfo.PocName != "" {
|
||||
Execute(pocinfo)
|
||||
return
|
||||
}
|
||||
var flag bool
|
||||
go func() {
|
||||
for _, infostr := range info.Infostr {
|
||||
pocinfo.PocName = lib.CheckInfoPoc(infostr)
|
||||
Execute(pocinfo)
|
||||
}
|
||||
flag = true
|
||||
}()
|
||||
|
||||
var flag bool
|
||||
go func() {
|
||||
time.Sleep(60 * time.Second)
|
||||
flag = true
|
||||
}()
|
||||
|
||||
go func() {
|
||||
if pocinfo.PocName != "" {
|
||||
Execute(pocinfo)
|
||||
} else {
|
||||
for _, infostr := range info.Infostr {
|
||||
pocinfo.PocName = lib.CheckInfoPoc(infostr)
|
||||
Execute(pocinfo)
|
||||
}
|
||||
}
|
||||
flag = true
|
||||
}()
|
||||
|
||||
for {
|
||||
if flag {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user