From bdd6b9727d99b57c43f8ba88e95d1f88757f9d64 Mon Sep 17 00:00:00 2001 From: ethicalhack3r Date: Wed, 3 Jun 2015 16:40:04 +0200 Subject: [PATCH] Dont update if user chooses default + no DBs exist --- wpscan.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wpscan.rb b/wpscan.rb index 10722a88..10f3b6bd 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -58,10 +58,13 @@ def main elsif input =~ /^a/i puts 'Scan aborted' exit(1) + else + puts critical('You can not run a scan without any databases.') if missing_db_file? + exit(1) end end - if wpscan_options.update || missing_db_file? + if wpscan_options.update puts notice('Updating the Database ...') DbUpdater.new(DATA_DIR).update(wpscan_options.verbose) puts notice('Update completed.')