Fixed a bug with workflows

dev
Ice3man543 2021-03-05 11:40:28 +05:30
parent 0c5be835de
commit 8cf1471e25
2 changed files with 4 additions and 4 deletions

View File

@ -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 != "" {

View File

@ -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)