Disable logging by default. Implement log option. #703 #336

This commit is contained in:
ethicalhack3r
2014-12-15 15:39:14 +01:00
parent d988b6ccbf
commit 3a3376ec41
6 changed files with 18 additions and 8 deletions

View File

@@ -8,11 +8,13 @@ def main
# delete old logfile, check if it is a symlink first.
File.delete(LOG_FILE) if File.exist?(LOG_FILE) and !File.symlink?(LOG_FILE)
banner()
begin
wpscan_options = WpscanOptions.load_from_arguments
@log = wpscan_options.log
banner() # called after @log instance variable set
unless wpscan_options.has_options?
# first parameter only url?
if ARGV.length == 1