more logic

This commit is contained in:
Christian Mehlmauer
2015-05-01 13:14:23 +02:00
parent 202180909c
commit 04d50ebea5

View File

@@ -46,7 +46,8 @@ def main
) )
# check if db file needs upgrade and we are not running in batch mode # check if db file needs upgrade and we are not running in batch mode
if update_required? && !wpscan_options.batch # also no need to check if the user supplied the --update switch
if update_required? && !wpscan_options.batch && !wpscan_options.update
puts "#{notice('[i]')} It seems like you have not updated the database for some time." puts "#{notice('[i]')} It seems like you have not updated the database for some time."
print '[?] Do you want to update now? [Y]es [N]o [A]bort, default: [N]' print '[?] Do you want to update now? [Y]es [N]o [A]bort, default: [N]'
if (input = Readline.readline) =~ /^y/i if (input = Readline.readline) =~ /^y/i