From 4062e4dfbcd4fc46e60d76ccafccb3ac67b54cc0 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Wed, 9 Jan 2013 23:01:30 +0100 Subject: [PATCH] Renamed XML --- data/{wp_theme_vulns.xml => theme_vulns.xml} | 0 lib/wpscan/modules/wp_themes.rb | 2 +- lib/wpscan/wp_theme.rb | 2 +- wpstools.rb | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename data/{wp_theme_vulns.xml => theme_vulns.xml} (100%) diff --git a/data/wp_theme_vulns.xml b/data/theme_vulns.xml similarity index 100% rename from data/wp_theme_vulns.xml rename to data/theme_vulns.xml diff --git a/lib/wpscan/modules/wp_themes.rb b/lib/wpscan/modules/wp_themes.rb index 388a7b44..84f010f7 100644 --- a/lib/wpscan/modules/wp_themes.rb +++ b/lib/wpscan/modules/wp_themes.rb @@ -21,7 +21,7 @@ module WpThemes def themes_from_aggressive_detection(options) options[:file] = options[:file] || (options[:full] ? "#{DATA_DIR}/themes_full.txt" : "#{DATA_DIR}/themes.txt") options[:vulns_file] = (options[:vulns_file] != nil and options[:vulns_file] != "") ? - options[:vulns_file] : DATA_DIR + "/wp_theme_vulns.xml" + options[:vulns_file] : DATA_DIR + "/theme_vulns.xml" options[:vulns_xpath] = "//theme[@name='#{@name}']/vulnerability" options[:vulns_xpath_2] = "//theme" options[:type] = "themes" diff --git a/lib/wpscan/wp_theme.rb b/lib/wpscan/wp_theme.rb index 79a18f53..3f1f2596 100644 --- a/lib/wpscan/wp_theme.rb +++ b/lib/wpscan/wp_theme.rb @@ -24,7 +24,7 @@ class WpTheme < WpItem def initialize(options = {}) options[:vulns_file] = (options[:vulns_file] != nil and options[:vulns_file] != "") ? - options[:vulns_file] : DATA_DIR + "/wp_theme_vulns.xml" + options[:vulns_file] : DATA_DIR + "/theme_vulns.xml" options[:vulns_xpath] = "//theme[@name='$name$']/vulnerability" options[:type] = "themes" @version = options[:version] diff --git a/wpstools.rb b/wpstools.rb index 9e37ba69..82b8caea 100755 --- a/wpstools.rb +++ b/wpstools.rb @@ -132,7 +132,7 @@ begin # seclists.org redirects to the homepage if the reference does not exist # TODO : the special case above if @check_vuln_ref_urls - vuln_ref_files = ["plugin_vulns.xml", "wp_theme_vulns.xml", "wp_vulns.xml"] + vuln_ref_files = ["plugin_vulns.xml", "theme_vulns.xml", "wp_vulns.xml"] error_codes = [404, 500, 403] not_found_regexp = %r{No Results Found|error 404|ID Invalid or Not Found}i