mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-14 05:12:36 +08:00
Update InfoScan.go 指纹识别字段更新
指纹识别字段更新
This commit is contained in:
parent
e433c635dd
commit
af9b77e725
@ -19,7 +19,7 @@ func InfoCheck(Url string, CheckData *[]CheckDatas) []string {
|
|||||||
|
|
||||||
for _, data := range *CheckData {
|
for _, data := range *CheckData {
|
||||||
for _, rule := range info.RuleDatas {
|
for _, rule := range info.RuleDatas {
|
||||||
if rule.Type == "code" {
|
if rule.Type == "code" || rule.Type == "body" {
|
||||||
matched, _ = regexp.MatchString(rule.Rule, string(data.Body))
|
matched, _ = regexp.MatchString(rule.Rule, string(data.Body))
|
||||||
} else {
|
} else {
|
||||||
matched, _ = regexp.MatchString(rule.Rule, data.Headers)
|
matched, _ = regexp.MatchString(rule.Rule, data.Headers)
|
||||||
|
Loading…
Reference in New Issue
Block a user