Adds DB update system

This commit is contained in:
erwanlr
2014-09-10 16:31:04 +02:00
parent d1a7a0ee1f
commit f2d205e576
5 changed files with 11 additions and 14 deletions

View File

@@ -39,12 +39,10 @@ def main
# Check for updates
if wpscan_options.update
puts 'Updating the DB ..'
puts 'Updating the DB ...'
DbUpdater.new(DATA_DIR).update
puts 'Done.'
exit # remove me
if !@updater.nil?
if @updater.has_local_changes?
print "#{red('[!]')} Local file changes detected, an update will override local changes, do you want to continue updating? [y/n] "