From af9b77e7257ff400b901fcb003e64ab937b2fb3f Mon Sep 17 00:00:00 2001 From: xaitx <56075300+xaitx@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:43:54 +0800 Subject: [PATCH] =?UTF-8?q?Update=20InfoScan.go=20=E6=8C=87=E7=BA=B9?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E5=AD=97=E6=AE=B5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 指纹识别字段更新 --- WebScan/InfoScan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebScan/InfoScan.go b/WebScan/InfoScan.go index 5dcc449..c276c06 100644 --- a/WebScan/InfoScan.go +++ b/WebScan/InfoScan.go @@ -19,7 +19,7 @@ func InfoCheck(Url string, CheckData *[]CheckDatas) []string { for _, data := range *CheckData { for _, rule := range info.RuleDatas { - if rule.Type == "code" { + if rule.Type == "code" || rule.Type == "body" { matched, _ = regexp.MatchString(rule.Rule, string(data.Body)) } else { matched, _ = regexp.MatchString(rule.Rule, data.Headers)