Adds DB update system
This commit is contained in:
@@ -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] "
|
||||
|
||||
Reference in New Issue
Block a user