Author SHA1 Message Date
影舞者 276b446e0c Update 2023-11-15 12:07:25 +08:00
影舞者 15cdc19097 Update 2023-11-15 10:40:17 +08:00
3 changed files with 10 additions and 3 deletions
+1
View File
@@ -11,6 +11,7 @@ builds:
- linux
- darwin
- freebsd
- solaris
goarch:
- amd64
- "386"
+1 -1
View File
@@ -17,7 +17,7 @@ func Scan(info common.HostInfo) {
fmt.Println("len(hosts)==0", err)
return
}
lib.Inithttp(common.Pocinfo)
lib.Inithttp()
var ch = make(chan struct{}, common.Threads)
var wg = sync.WaitGroup{}
web := strconv.Itoa(common.PORTList["web"])
+8 -2
View File
@@ -25,8 +25,14 @@ var (
keepAlive = 5 * time.Second
)
func Inithttp(PocInfo common.PocInfo) {
//PocInfo.Proxy = "http://127.0.0.1:8080"
func Inithttp() {
//common.Proxy = "http://127.0.0.1:8080"
if common.PocNum == 0 {
common.PocNum = 20
}
if common.WebTimeout == 0 {
common.WebTimeout = 5
}
err := InitHttpClient(common.PocNum, common.Proxy, time.Duration(common.WebTimeout)*time.Second)
if err != nil {
log.Fatal(err)