bugfixing when no paramters are supplied
This commit is contained in:
@@ -45,12 +45,7 @@ class WpscanOptions
|
|||||||
attr_accessor *ACCESSOR_OPTIONS
|
attr_accessor *ACCESSOR_OPTIONS
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@enumerate_plugins = false
|
|
||||||
@enumerate_themes = false
|
|
||||||
@enumerate_only_vulnerable_plugins = false
|
|
||||||
@enumerate_only_vulnerable_themes = false
|
|
||||||
@enumerate_timthumbs = false
|
|
||||||
@enumerate_usernames = false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def url=(url)
|
def url=(url)
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ begin
|
|||||||
|
|
||||||
options = WpOptions.get_empty_options
|
options = WpOptions.get_empty_options
|
||||||
options[:url] = wp_target.uri
|
options[:url] = wp_target.uri
|
||||||
options[:only_vulnerable_ones] = wpscan_options.enumerate_only_vulnerable_plugins
|
options[:only_vulnerable_ones] = wpscan_options.enumerate_only_vulnerable_plugins || false
|
||||||
options[:show_progress_bar] = true
|
options[:show_progress_bar] = true
|
||||||
options[:wp_content_dir] = wp_target.wp_content_dir
|
options[:wp_content_dir] = wp_target.wp_content_dir
|
||||||
options[:error_404_hash] = wp_target.error_404_hash
|
options[:error_404_hash] = wp_target.error_404_hash
|
||||||
@@ -233,7 +233,7 @@ begin
|
|||||||
|
|
||||||
options = WpOptions.get_empty_options
|
options = WpOptions.get_empty_options
|
||||||
options[:url] = wp_target.uri
|
options[:url] = wp_target.uri
|
||||||
options[:only_vulnerable_ones] = wpscan_options.enumerate_only_vulnerable_themes
|
options[:only_vulnerable_ones] = wpscan_options.enumerate_only_vulnerable_themes || false
|
||||||
options[:show_progress_bar] = true
|
options[:show_progress_bar] = true
|
||||||
options[:wp_content_dir] = wp_target.wp_content_dir
|
options[:wp_content_dir] = wp_target.wp_content_dir
|
||||||
options[:error_404_hash] = wp_target.error_404_hash
|
options[:error_404_hash] = wp_target.error_404_hash
|
||||||
|
|||||||
Reference in New Issue
Block a user