DB Update: fixes a bug due to .chomp, Adds verbose output

This commit is contained in:
erwanlr
2014-09-12 19:18:56 +02:00
parent f818778e0a
commit 3e94ca11df
3 changed files with 22 additions and 13 deletions

View File

@@ -43,7 +43,11 @@ def main
wpscan_options.to_h.merge(max_threads: wpscan_options.threads)
)
update_db if wpscan_options.update || missing_db_file?
if wpscan_options.update || missing_db_file?
puts 'Updating the DB ...'
DbUpdater.new(DATA_DIR).update(wpscan_options.verbose)
puts 'Done.'
end
# Check for updates
if wpscan_options.update