Add exception so ruby wpscan.rb http://domain.com is detected
This commit is contained in:
@@ -14,8 +14,13 @@ def main
|
|||||||
wpscan_options = WpscanOptions.load_from_arguments
|
wpscan_options = WpscanOptions.load_from_arguments
|
||||||
|
|
||||||
unless wpscan_options.has_options?
|
unless wpscan_options.has_options?
|
||||||
usage()
|
# first parameter only url?
|
||||||
raise('No argument supplied')
|
if ARGV.length == 1
|
||||||
|
wpscan_options.url = ARGV[0]
|
||||||
|
else
|
||||||
|
usage()
|
||||||
|
raise('No argument supplied')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Define a global variable
|
# Define a global variable
|
||||||
|
|||||||
Reference in New Issue
Block a user