diff --git a/v2/cmd/nuclei/main.go b/v2/cmd/nuclei/main.go index c76e722d8..fb90aec1e 100644 --- a/v2/cmd/nuclei/main.go +++ b/v2/cmd/nuclei/main.go @@ -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.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.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() if cfgFile != "" { diff --git a/v2/internal/runner/processor.go b/v2/internal/runner/processor.go index 2447f2079..5e5f55718 100644 --- a/v2/internal/runner/processor.go +++ b/v2/internal/runner/processor.go @@ -9,6 +9,9 @@ import ( // processTemplateWithList process a template on the URL list func (r *Runner) processTemplateWithList(template *templates.Template) bool { + if r.options.Workflows { + return false + } results := &atomic.Bool{} wg := sizedwaitgroup.New(r.options.BulkSize) 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 func (r *Runner) processWorkflowWithList(template *templates.Template) bool { - if !r.options.Workflows { - return false - } results := &atomic.Bool{} wg := sizedwaitgroup.New(r.options.BulkSize)