Do not report per-template empty results
@@ -209,15 +209,6 @@ func (r *Runner) RunEnumeration() {
results = httpResults
}
}
-
- if !results {
- if r.output != nil {
- outputFile := r.output.Name()
- r.output.Close()
- os.Remove(outputFile)
- }
- gologger.Infof("No results found for template [%s]. Happy hacking!", template.ID)
- }
case *workflows.Workflow:
workflow := t.(*workflows.Workflow)
r.ProcessWorkflowWithList(workflow)
@@ -225,6 +216,14 @@ func (r *Runner) RunEnumeration() {
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. Happy hacking!")
+ }
return
}
