From a15028793e0a54ad4da3d72fd7e2f5920e1f2c51 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Sun, 23 Sep 2012 21:50:41 +0200 Subject: [PATCH] -) custom plugins directory (outside of wp-content) -) feedback from ewanlr -) Regex fix for version detection from readme.txt due to false positives (tag-cloud-widget plugin) --- doc/WpDetector.html | 4 +- doc/WpEnumerator.html | 10 +- doc/WpItem.html | 201 +++++----- doc/WpOptions.html | 2 +- doc/WpPlugin.html | 2 +- doc/WpPlugins.html | 10 +- doc/WpTarget.html | 2 +- doc/WpTheme.html | 19 +- doc/WpTimthumbs.html | 2 +- doc/WpVersion.html | 17 +- doc/created.rid | 28 +- doc/index.html | 4 +- doc/lib/wpscan/modules/wp_plugins_rb.html | 2 +- doc/lib/wpscan/modules/wp_timthumbs_rb.html | 2 +- doc/lib/wpscan/wp_detector_rb.html | 2 +- doc/lib/wpscan/wp_enumerator_rb.html | 2 +- doc/lib/wpscan/wp_options_rb.html | 2 +- doc/lib/wpscan/wp_plugin_rb.html | 2 +- doc/lib/wpscan/wp_target_rb.html | 2 +- doc/lib/wpscan/wp_theme_rb.html | 2 +- doc/lib/wpscan/wp_version_rb.html | 2 +- doc/wpscan_rb.html | 2 +- lib/wpscan/modules/wp_login_protection.rb | 12 +- lib/wpscan/modules/wp_plugins.rb | 10 +- lib/wpscan/modules/wp_themes.rb | 6 +- lib/wpscan/modules/wp_timthumbs.rb | 2 +- lib/wpscan/wp_detector.rb | 4 +- lib/wpscan/wp_enumerator.rb | 10 +- lib/wpscan/wp_item.rb | 27 +- lib/wpscan/wp_options.rb | 2 +- lib/wpscan/wp_plugin.rb | 2 +- lib/wpscan/wp_target.rb | 2 +- lib/wpscan/wp_theme.rb | 6 +- lib/wpscan/wp_version.rb | 16 +- .../modules/wp_login_protection_spec.rb | 4 +- spec/lib/wpscan/modules/wp_plugins_spec.rb | 28 +- spec/lib/wpscan/modules/wp_themes_spec.rb | 42 +- spec/lib/wpscan/modules/wp_timthumbs_spec.rb | 8 +- spec/lib/wpscan/wp_item_spec.rb | 372 +++++++++++++----- spec/lib/wpscan/wp_options_spec.rb | 14 +- spec/lib/wpscan/wp_plugin_spec.rb | 14 +- spec/lib/wpscan/wp_target_spec.rb | 13 +- spec/lib/wpscan/wp_theme_spec.rb | 34 +- spec/lib/wpscan/wp_version_spec.rb | 10 +- spec/lib/wpscan/wp_vulnerability_spec.rb | 4 +- wpscan.rb | 12 +- 46 files changed, 560 insertions(+), 415 deletions(-) diff --git a/doc/WpDetector.html b/doc/WpDetector.html index 9cf2a0e3..55fb879f 100644 --- a/doc/WpDetector.html +++ b/doc/WpDetector.html @@ -236,7 +236,7 @@ result = items if items == nil or items.length == 0 - result = passive_detection(options[:url], options[:type], options[:wp_content_dir]) + result = passive_detection(options[:base_url], options[:type], options[:wp_content_dir]) end enum_results = WpEnumerator.enumerate(options) @@ -303,7 +303,7 @@ names.each do |item| items << WpItem.new( - :url => url, + :base_url => url, :name => item, :type => type, :path => "#{item}/", diff --git a/doc/WpEnumerator.html b/doc/WpEnumerator.html index 0042d206..e4aab697 100644 --- a/doc/WpEnumerator.html +++ b/doc/WpEnumerator.html @@ -232,7 +232,7 @@