mirror of https://github.com/daffainfo/nuclei.git
Fixed a bug with workflows
parent
0c5be835de
commit
8cf1471e25
|
@ -84,7 +84,7 @@ based on templates offering massive extensibility and ease of use.`)
|
||||||
set.BoolVarP(&options.Workflows, "workflows", "w", false, "Only run workflow templates with nuclei")
|
set.BoolVarP(&options.Workflows, "workflows", "w", false, "Only run workflow templates with nuclei")
|
||||||
set.IntVarP(&options.StatsInterval, "stats-interval", "si", 5, "Number of seconds between each stats line")
|
set.IntVarP(&options.StatsInterval, "stats-interval", "si", 5, "Number of seconds between each stats line")
|
||||||
set.BoolVar(&options.SystemResolvers, "system-resolvers", false, "Use system dns resolving as error fallback")
|
set.BoolVar(&options.SystemResolvers, "system-resolvers", false, "Use system dns resolving as error fallback")
|
||||||
set.IntVar(&options.PageTimeout, "page-timeout", 15, "Seconds to wait for each page in headless")
|
set.IntVar(&options.PageTimeout, "page-timeout", 20, "Seconds to wait for each page in headless")
|
||||||
_ = set.Parse()
|
_ = set.Parse()
|
||||||
|
|
||||||
if cfgFile != "" {
|
if cfgFile != "" {
|
||||||
|
|
|
@ -9,6 +9,9 @@ import (
|
||||||
|
|
||||||
// processTemplateWithList process a template on the URL list
|
// processTemplateWithList process a template on the URL list
|
||||||
func (r *Runner) processTemplateWithList(template *templates.Template) bool {
|
func (r *Runner) processTemplateWithList(template *templates.Template) bool {
|
||||||
|
if r.options.Workflows {
|
||||||
|
return false
|
||||||
|
}
|
||||||
results := &atomic.Bool{}
|
results := &atomic.Bool{}
|
||||||
wg := sizedwaitgroup.New(r.options.BulkSize)
|
wg := sizedwaitgroup.New(r.options.BulkSize)
|
||||||
r.hostMap.Scan(func(k, _ []byte) error {
|
r.hostMap.Scan(func(k, _ []byte) error {
|
||||||
|
@ -32,9 +35,6 @@ func (r *Runner) processTemplateWithList(template *templates.Template) bool {
|
||||||
|
|
||||||
// processTemplateWithList process a template on the URL list
|
// processTemplateWithList process a template on the URL list
|
||||||
func (r *Runner) processWorkflowWithList(template *templates.Template) bool {
|
func (r *Runner) processWorkflowWithList(template *templates.Template) bool {
|
||||||
if !r.options.Workflows {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
results := &atomic.Bool{}
|
results := &atomic.Bool{}
|
||||||
wg := sizedwaitgroup.New(r.options.BulkSize)
|
wg := sizedwaitgroup.New(r.options.BulkSize)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue