Documentation
¶
Overview ¶
Package plugin 加载插件、执行插件、获取插件信息,支持JSON和Go插件
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GoPlugins map[string][]GoPlugin
GoPlugins GO插件集
View Source
var JSONPlugins map[string][]JSONPlugin
JSONPlugins JSON插件集
Functions ¶
Types ¶
type GoPlugin ¶
type GoPlugin interface {
Init() Plugin
Check(netloc string, meta TaskMeta) bool
GetResult() []Plugin
}
GoPlugin 插件接口
type JSONPlugin ¶
type JSONPlugin struct {
Target string `json:"target"`
Meta Plugin `json:"meta"`
Request struct {
Path string `json:"path"`
PostData string `json:"postdata"`
} `json:"request"`
Verify struct {
Type string `json:"type"`
Match string `json:"match"`
} `json:"verify"`
Extra bool
}
JSONPlugin JSON插件
type Plugin ¶
type Plugin struct {
Name string `json:"name"`
Remarks string `json:"remarks"`
Level int `json:"level"`
Type string `json:"type"`
Author string `json:"author"`
References References `json:"references"`
Request string
Response string
}
Plugin 漏洞插件信息
type References ¶
type References struct {
URL string `json:"url"`
CVE string `json:"cve"`
KPID string `json:"kpid"`
}
References 插件附加信息
Click to show internal directories.
Click to hide internal directories.