Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow1ng committed Nov 15, 2023
1 parent 197b088 commit 15cdc19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Plugins/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
10 changes: 8 additions & 2 deletions WebScan/lib/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 15cdc19

Please sign in to comment.