减少http client初始化次数

This commit is contained in:
shadow1ng
2021-02-21 14:52:31 +08:00
parent 14c9847f88
commit 583e51d479
4 changed files with 24 additions and 11 deletions
+2
View File
@@ -3,6 +3,7 @@ package Plugins
import (
"errors"
"fmt"
"github.com/shadow1ng/fscan/WebScan"
"github.com/shadow1ng/fscan/common"
"reflect"
"strconv"
@@ -24,6 +25,7 @@ func Scan(info common.HostInfo) {
if info.Scantype == "portscan" {
return
}
WebScan.Inithttp(common.Pocinfo)
var severports []string //severports := []string{"21","22","135"."445","1433","3306","5432","6379","9200","11211","27017"...}
for _, port := range common.PORTList {
severports = append(severports, strconv.Itoa(port))