mirror of https://github.com/daffainfo/nuclei.git
Fixed #762 by not deleting file with no results
parent
b2e416b0dd
commit
d22d823e9c
|
@ -25,6 +25,7 @@ func main() {
|
||||||
gologger.Fatal().Msgf("Could not create runner: %s\n", err)
|
gologger.Fatal().Msgf("Could not create runner: %s\n", err)
|
||||||
}
|
}
|
||||||
nucleiRunner.RunEnumeration()
|
nucleiRunner.RunEnumeration()
|
||||||
|
nucleiRunner.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
func readConfig() {
|
func readConfig() {
|
||||||
|
|
|
@ -387,13 +387,8 @@ func (r *Runner) RunEnumeration() {
|
||||||
r.issuesClient.Close()
|
r.issuesClient.Close()
|
||||||
}
|
}
|
||||||
if !results.Load() {
|
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!")
|
gologger.Info().Msgf("No results found. Better luck next time!")
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.browser != nil {
|
if r.browser != nil {
|
||||||
r.browser.Close()
|
r.browser.Close()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue