diff --git a/internal/fx/fxinfo.go b/internal/fx/fxinfo.go index fefe2cb..91390da 100644 --- a/internal/fx/fxinfo.go +++ b/internal/fx/fxinfo.go @@ -795,4 +795,66 @@ var defalutPlugins = []Plugin{ Type: TypeInline, Source: "https://fofa.so/static_pages/log4j2", }, + + // 金色钱江 + { + Id: "fx-2021-11200", + Query: "JSPWiki", + RuleName: "JSPWiki", + RuleEnglish: "JSPWiki", + Description: "JSPWiki", + Author: "jsqj", + FofaQuery: `body="JSPWiki"`, + Tag: []string{"log4j2", "jsqj"}, + Type: TypeInline, + Source: "https://mp.weixin.qq.com/s/_j20nCMBJOy-zF8WziHZgA", + }, + { + Id: "fx-2021-11201", + Query: "Apache-James", + RuleName: "Apache James", + RuleEnglish: "Apache James", + Description: "Apache James", + Author: "jsqj", + FofaQuery: `port="25" && "James"`, + Tag: []string{"log4j2", "jsqj"}, + Type: TypeInline, + Source: "https://mp.weixin.qq.com/s/_j20nCMBJOy-zF8WziHZgA", + }, + { + Id: "fx-2021-11202", + Query: "Mobilelron", + RuleName: "Mobilelron", + RuleEnglish: "Mobilelron", + Description: "Mobilelron", + Author: "jsqj", + FofaQuery: `body="/mifs"`, + Tag: []string{"log4j2", "jsqj"}, + Type: TypeInline, + Source: "https://mp.weixin.qq.com/s/_j20nCMBJOy-zF8WziHZgA", + }, + { + Id: "fx-2021-11203", + Query: "UniFi", + RuleName: "UniFi", + RuleEnglish: "UniFi", + Description: "UniFi", + Author: "jsqj", + FofaQuery: `title=="UniFi"`, + Tag: []string{"log4j2", "jsqj"}, + Type: TypeInline, + Source: "https://mp.weixin.qq.com/s/_j20nCMBJOy-zF8WziHZgA", + }, + { + Id: "fx-2021-11204", + Query: "Struts2-more", + RuleName: "Struts2 more", + RuleEnglish: "Struts2 more", + Description: "Struts2 more", + Author: "jsqj", + FofaQuery: `header="If-Modified-Since"`, + Tag: []string{"log4j2", "jsqj"}, + Type: TypeInline, + Source: "https://mp.weixin.qq.com/s/_j20nCMBJOy-zF8WziHZgA", + }, } diff --git a/internal/fx/fxquery.go b/internal/fx/fxquery.go index aa31166..ddfb544 100644 --- a/internal/fx/fxquery.go +++ b/internal/fx/fxquery.go @@ -130,6 +130,7 @@ func (fx FoFaxQuery) SearchOrTable(id, query, ruleName, ruleEnglish, Author, tag }) } } + printer.Infof("Total: %d", len(results)) if len(results) == 0 { table.Output([]Tinfo{{"Info", "Not found"}}) } @@ -164,6 +165,7 @@ func (fx FoFaxQuery) SearchTable(id, query, ruleName, ruleEnglish, Author, tag s }) } } + printer.Infof("Total: %d", len(results)) if len(results) == 0 { table.Output([]Tinfo{{"Info", "Not found"}}) } @@ -180,6 +182,7 @@ func (fx FoFaxQuery) ListTags() { } } + printer.Infof("Total: %d", len(tlist)) table.Output(tlist) } func (fx FoFaxQuery) SearchSingleTable(query string) {