new options
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user