Db Update draft

This commit is contained in:
erwanlr
2014-09-10 12:52:52 +02:00
parent eb73025338
commit d1a7a0ee1f
4 changed files with 102 additions and 8 deletions

View File

@@ -39,6 +39,12 @@ def main
# Check for updates
if wpscan_options.update
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] "