From e5f1be0b308e68f04ee847eb542523b2fe5ed2a3 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Thu, 14 Nov 2013 12:01:45 +0000 Subject: [PATCH] Fix #201 Incorrect Paramter Parsing when no url was supplied --- wpscan.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wpscan.rb b/wpscan.rb index e3ba62ad..5547535b 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -44,6 +44,10 @@ def main exit(0) end + unless wpscan_options.url + raise 'The URL is mandatory, please supply it with --url or -u' + end + wp_target = WpTarget.new(wpscan_options.url, wpscan_options.to_h) # Remote website up?