new options

This commit is contained in:
Christian Mehlmauer
2016-07-21 21:27:21 +02:00
parent 2cc5bb0311
commit 7f2762eb6f
3 changed files with 30 additions and 6 deletions

View File

@@ -43,7 +43,9 @@ class WpscanOptions
:connect_timeout,
:max_threads,
:no_banner,
:throttle
:throttle,
:disable_accept_header,
:disable_referer
]
attr_accessor *ACCESSOR_OPTIONS
@@ -208,7 +210,9 @@ class WpscanOptions
enumerate_options_from_string(cli_value)
else
raise "Unknow option : #{cli_option} with value #{cli_value}"
text = "Unknown option : #{cli_option}"
text << " with value #{cli_value}" if (cli_value && !cli_value.empty?)
raise text
end
end
@@ -282,7 +286,9 @@ class WpscanOptions
['--cookie', GetoptLong::REQUIRED_ARGUMENT],
['--log', GetoptLong::NO_ARGUMENT],
['--no-banner', GetoptLong::NO_ARGUMENT],
['--throttle', GetoptLong::REQUIRED_ARGUMENT]
['--throttle', GetoptLong::REQUIRED_ARGUMENT],
['--disable-accept-header', GetoptLong::NO_ARGUMENT],
['--disable-referer', GetoptLong::NO_ARGUMENT]
)
end