Skip to content

Commit

Permalink
增加 5 个log4j的语句
Browse files Browse the repository at this point in the history
  • Loading branch information
Becivells committed Dec 25, 2021
1 parent 767e8cb commit a85a9c3
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
62 changes: 62 additions & 0 deletions internal/fx/fxinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}
3 changes: 3 additions & 0 deletions internal/fx/fxquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}})
}
Expand Down Expand Up @@ -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"}})
}
Expand All @@ -180,6 +182,7 @@ func (fx FoFaxQuery) ListTags() {
}

}
printer.Infof("Total: %d", len(tlist))
table.Output(tlist)
}
func (fx FoFaxQuery) SearchSingleTable(query string) {
Expand Down

0 comments on commit a85a9c3

Please sign in to comment.