codingo / VHostScan

A virtual host scanner that performs reverse lookups, can be used with pivot tools, detect catch-all scenarios, work around wildcards, aliases and dynamic default pages.
GNU General Public License v3.0
1.19k stars 231 forks source link

output files implicit local directory #88

Closed linted closed 6 years ago

linted commented 6 years ago

When specifying an output file with a flag like -oN, the local directory should be implicitly used

Right now you have to manually add the ./ before your output file name if you want it to be in the current directory. If you don't, an exception is thrown and no output file is written.

Check to make sure that directory is not empty before trying to stat/make it

This can easily be achieved by adding an if statement around the try/execpt block on line 18 of file_helper.py. Another option if you assume that most people will be outputing to another dir is to wrap the mkdir() call on line 21 with a similar if statement

codingo commented 6 years ago

Closed with #89