Documentation ¶
Index ¶
- func Add(p Plugin)
- func AddLists(plist []Plugin)
- func GenDefaultPlugin(pluginFile string) error
- func GetTagCommit(tag string) string
- func StrContain(query, rawStr2 string) bool
- func StrEqual(query, rawStr2 string) bool
- func StrEqualInList(query string, tags []string) bool
- type FoFaxQuery
- func (fx FoFaxQuery) ListTags()
- func (fx FoFaxQuery) Search(id, query, ruleName, ruleEnglish, Author, tag string) (plugins []Plugin)
- func (fx FoFaxQuery) SearchExpTab(rawStrs string)
- func (fx FoFaxQuery) SearchOr(id, query, ruleName, ruleEnglish, Author, tag string) (plugins []Plugin)
- func (fx FoFaxQuery) SearchOrTable(id, query, ruleName, ruleEnglish, Author, tag string)
- func (fx FoFaxQuery) SearchQueryExp(rawStrs string) (plugins []Plugin)
- func (fx FoFaxQuery) SearchSingle(query string) (Plugin, error)
- func (fx FoFaxQuery) SearchSingleTable(query string)
- func (fx FoFaxQuery) SearchTable(id, query, ruleName, ruleEnglish, Author, tag string)
- type FxType
- type Plugin
- type Tinfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenDefaultPlugin ¶
func GetTagCommit ¶
func StrEqualInList ¶
StrEqualInList string in strings
Types ¶
type FoFaxQuery ¶
type FoFaxQuery struct { Plugins []Plugin // query Query map[string]bool Tags map[string]bool Id map[string]bool }
var Info *FoFaxQuery
func NewFoFaxQuery ¶
func NewFoFaxQuery(fxpath string) *FoFaxQuery
func (FoFaxQuery) ListTags ¶
func (fx FoFaxQuery) ListTags()
func (FoFaxQuery) Search ¶
func (fx FoFaxQuery) Search(id, query, ruleName, ruleEnglish, Author, tag string) (plugins []Plugin)
func (FoFaxQuery) SearchExpTab ¶
func (fx FoFaxQuery) SearchExpTab(rawStrs string)
func (FoFaxQuery) SearchOr ¶
func (fx FoFaxQuery) SearchOr(id, query, ruleName, ruleEnglish, Author, tag string) (plugins []Plugin)
func (FoFaxQuery) SearchOrTable ¶
func (fx FoFaxQuery) SearchOrTable(id, query, ruleName, ruleEnglish, Author, tag string)
func (FoFaxQuery) SearchQueryExp ¶
func (fx FoFaxQuery) SearchQueryExp(rawStrs string) (plugins []Plugin)
func (FoFaxQuery) SearchSingle ¶
func (fx FoFaxQuery) SearchSingle(query string) (Plugin, error)
func (FoFaxQuery) SearchSingleTable ¶
func (fx FoFaxQuery) SearchSingleTable(query string)
func (FoFaxQuery) SearchTable ¶
func (fx FoFaxQuery) SearchTable(id, query, ruleName, ruleEnglish, Author, tag string)
type Plugin ¶
type Plugin struct { Id string `table:"Id" yaml:"id"` Query string `table:"Query" yaml:"query"` // 查询语法 RuleName string `table:"RuleName" yaml:"rule_name"` // 标题名 RuleEnglish string `table:"RuleEnglish" yaml:"rule_english"` // 规则英文名 Description string `table:"Description" yaml:"description"` // 描述 Author string `table:"Author" yaml:"author"` // 作者 FofaQuery string `table:"-" yaml:"fofa_query"` // fofa查询 Tag []string `table:"Tag" yaml:"tag"` // 标签 Type FxType `table:"Type" yaml:"-"` // 类别 Source string `table:"Source" yaml:"source"` // 来源 FileDir string `table:"Source" yaml:"-"` // 来源 }
func LoadPlugin ¶
func (Plugin) QueryString ¶
func (*Plugin) ShowInfoTable ¶
func (q *Plugin) ShowInfoTable()
Click to show internal directories.
Click to hide internal directories.