Documentation
¶
Index ¶
- Constants
- Variables
- type CPEResult
- type CommonResult
- type Engine
- func (e *Engine) AddTemplate(fileName string, buf []byte) (err error)
- func (e *Engine) CheckTemplatesUpdate() (needUpdate bool)
- func (e *Engine) ExecuteCPE(items []TargetItem, resultPipe chan VulnResult, progressRate *atomic.Int32)
- func (e *Engine) ExecuteCommon(urls []string) (results []*CommonResult)
- func (e *Engine) ExecuteNuclei(targetItems []TargetItem, templateIDs, proxies []string, ...)
- func (e *Engine) Init() error
- func (e *Engine) ListTemplates() []*templates.Template
- func (e *Engine) Scan(t VulnTask)
- func (e *Engine) UpdateTemplates() error
- type TargetItem
- type TaskStat
- type VulnResult
- type VulnTask
Constants ¶
View Source
const ( TYPE_COMMON byte = iota TYPE_CPE TYPE_NUCLEI )
Variables ¶
View Source
var ( TEMPLATES_OUTER_FOLDER = "templates" TEMPLATE_INNER_FOLDER = "inner" TEMPLATE_CUSTOM_FOLDER = "custom" NUCLEI_BINARY = "nuclei" TEMPLATES_URL = "https://github.com/dusbot/templates" PingProgressRate = 10 CommonTaskProgressRate = 25 CPETaskProgressRate = 25 NucleiProgressRate = 40 )
Functions ¶
This section is empty.
Types ¶
type CommonResult ¶ added in v0.1.10
type Engine ¶ added in v0.1.6
type Engine struct {
TemplatePath string
TemplateInnerPath string
TemplateCustomPath string
Templates []*templates.Template
}
func (*Engine) AddTemplate ¶ added in v0.1.6
func (*Engine) CheckTemplatesUpdate ¶ added in v0.1.9
func (*Engine) ExecuteCPE ¶ added in v0.1.10
func (e *Engine) ExecuteCPE(items []TargetItem, resultPipe chan VulnResult, progressRate *atomic.Int32)
func (*Engine) ExecuteCommon ¶ added in v0.1.10
func (e *Engine) ExecuteCommon(urls []string) (results []*CommonResult)
func (*Engine) ExecuteNuclei ¶ added in v0.1.10
func (e *Engine) ExecuteNuclei( targetItems []TargetItem, templateIDs, proxies []string, resultPipe chan VulnResult, nucleiProgressRate *atomic.Int32, )
func (*Engine) ListTemplates ¶ added in v0.1.6
func (*Engine) UpdateTemplates ¶ added in v0.1.9
type TargetItem ¶ added in v0.1.10
type TaskStat ¶ added in v0.1.10
type TaskStat struct {
ProgressPipe chan int
ResultPipe chan VulnResult
ProgressPipeClosed atomic.Bool
ResultPipeClosed atomic.Bool
PingTaskProgress *atomic.Int32
NucleiTaskProgress *atomic.Int32
CPETaskRateProgress *atomic.Int32
CommonTaskRateProgress *atomic.Int32
}
func InitTaskStat ¶ added in v0.1.10
func InitTaskStat() *TaskStat
type VulnResult ¶ added in v0.1.10
type VulnResult struct {
Type byte
CommonResults []*CommonResult
NucleiResults []*output.ResultEvent
CPEResults []*CPEResult
}
Click to show internal directories.
Click to hide internal directories.