Update scan.go

This commit is contained in:
公明 2025-04-24 17:18:54 +08:00 committed by GitHub
parent af755e222e
commit cd79515280
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,7 +152,6 @@ func sendHTTPAndKimi(r *RequestResponseLog) (result, reqA, reqB, respA, respB st
// 达成这些要求进行越权扫描
if isNotSuffix(r.Request.URL.Path, config.GetConfig().Suffixes) && !containsString(r.Response.Header.Get("Content-Type"), config.GetConfig().AllowedRespHeaders) {
log.Println("ReqA:", req1)
req, err := http.NewRequest(r.Request.Method, fullURL.String(), strings.NewReader(string(r.Request.Body)))
if err != nil {
fmt.Println("创建请求失败:", err)
@ -183,7 +182,6 @@ func sendHTTPAndKimi(r *RequestResponseLog) (result, reqA, reqB, respA, respB st
return "", "", "", "", "", err // 返回错误
}
req2 := string(jsonDataReq2)
log.Println("ReqB:", req2)
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {