mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 16:45:28 +00:00
Move no-results logic as Workflows will not return any
This commit is contained in:
parent
9d7303549b
commit
f376a7d9cd
@ -207,21 +207,22 @@ func (r *Runner) RunEnumeration() {
|
|||||||
results = httpResults
|
results = httpResults
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !results {
|
||||||
|
if r.output != nil {
|
||||||
|
outputFile := r.output.Name()
|
||||||
|
r.output.Close()
|
||||||
|
os.Remove(outputFile)
|
||||||
|
}
|
||||||
|
gologger.Infof("No results found for [%s]. Happy hacking!", template.ID)
|
||||||
|
}
|
||||||
case *workflows.Workflow:
|
case *workflows.Workflow:
|
||||||
workflow := t.(*workflows.Workflow)
|
workflow := t.(*workflows.Workflow)
|
||||||
r.ProcessWorkflowWithList(workflow)
|
r.ProcessWorkflowWithList(workflow)
|
||||||
default:
|
default:
|
||||||
gologger.Errorf("Could not parse file '%s': %s\n", r.options.Templates, err)
|
gologger.Errorf("Could not parse file '%s': %s\n", match, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !results {
|
|
||||||
if r.output != nil {
|
|
||||||
outputFile := r.output.Name()
|
|
||||||
r.output.Close()
|
|
||||||
os.Remove(outputFile)
|
|
||||||
}
|
|
||||||
gologger.Infof("No results found for the template. Happy hacking!")
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user