Fix #201 Incorrect Paramter Parsing when no url was supplied

This commit is contained in:
erwanlr
2013-11-14 12:01:45 +00:00
parent dd74934638
commit e5f1be0b30

View File

@@ -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?