支持-u url或者-uf url.txt,进行url批量扫描

This commit is contained in:
shadow1ng
2021-03-04 14:42:10 +08:00
parent 423c0bebea
commit 5e7def5085
16 changed files with 65 additions and 26 deletions
+3 -1
View File
@@ -37,6 +37,9 @@ func InitHttpClient(ThreadsNum int, DownProxy string, Timeout time.Duration) err
DisableKeepAlives: false,
}
if DownProxy != "" {
if DownProxy == "1" {
DownProxy = "http://127.0.0.1:8080"
}
u, err := url.Parse(DownProxy)
if err != nil {
return err
@@ -144,7 +147,6 @@ func getRespBody(oResp *http.Response) ([]byte, error) {
if err != nil {
return nil, err
}
defer gr.Close()
for {
buf := make([]byte, 1024)