Fixed #762 by not deleting file with no results

dev
Ice3man543 2021-06-12 03:48:10 +05:30
parent b2e416b0dd
commit d22d823e9c
2 changed files with 1 additions and 5 deletions

View File

@ -25,6 +25,7 @@ func main() {
gologger.Fatal().Msgf("Could not create runner: %s\n", err)
}
nucleiRunner.RunEnumeration()
nucleiRunner.Close()
}
func readConfig() {

View File

@ -387,13 +387,8 @@ func (r *Runner) RunEnumeration() {
r.issuesClient.Close()
}
if !results.Load() {
if r.output != nil {
r.output.Close()
os.Remove(r.options.Output)
}
gologger.Info().Msgf("No results found. Better luck next time!")
}
if r.browser != nil {
r.browser.Close()
}