maurosoria / dirsearch

Web path scanner
11.57k stars 2.29k forks source link

"reports" folder always created #1341

Closed cyberaz0r closed 6 months ago

cyberaz0r commented 7 months ago

What is the problem?

The "reports" folder is created regardless of whether you specify a different path for the output file. Additionally you cannot set a flag for disabling output files.

How should it be solved?

There should be a flag to disable output file and it should not create the "reports" folder on the current working directory if a different path is specified via the -o option.

ajcriado commented 6 months ago

@cyberaz0r After inspecting the code I found that this is an option that is enabled by default. You can change it by modifying your config.ini file and setting autosave-report = True to autosave-report = False

shelld3v commented 6 months ago

@cyberaz0r dirsearch does not create "reports" folder if you have already declared the path of the output file via -o, the "reports" folder probably had been created before that. Also, @ajcriado has shown how to disable the auto-reporting feature, hope that helps

ajcriado commented 6 months ago

@shelld3v Indeed, it does create the "reports" folder and leaves it empty. I have created this pull request to control that