Add exception so ruby wpscan.rb http://domain.com is detected

This commit is contained in:
Christian Mehlmauer
2014-08-07 21:38:37 +02:00
parent 8d8aa52b9b
commit ca2610d74f

View File

@@ -14,9 +14,14 @@ def main
wpscan_options = WpscanOptions.load_from_arguments
unless wpscan_options.has_options?
# first parameter only url?
if ARGV.length == 1
wpscan_options.url = ARGV[0]
else
usage()
raise('No argument supplied')
end
end
# Define a global variable
$COLORSWITCH = wpscan_options.no_color