Renamed XML
This commit is contained in:
@@ -21,7 +21,7 @@ module WpThemes
|
|||||||
def themes_from_aggressive_detection(options)
|
def themes_from_aggressive_detection(options)
|
||||||
options[:file] = options[:file] || (options[:full] ? "#{DATA_DIR}/themes_full.txt" : "#{DATA_DIR}/themes.txt")
|
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] = (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] = "//theme[@name='#{@name}']/vulnerability"
|
||||||
options[:vulns_xpath_2] = "//theme"
|
options[:vulns_xpath_2] = "//theme"
|
||||||
options[:type] = "themes"
|
options[:type] = "themes"
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class WpTheme < WpItem
|
|||||||
|
|
||||||
def initialize(options = {})
|
def initialize(options = {})
|
||||||
options[:vulns_file] = (options[:vulns_file] != nil and options[:vulns_file] != "") ?
|
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] = "//theme[@name='$name$']/vulnerability"
|
||||||
options[:type] = "themes"
|
options[:type] = "themes"
|
||||||
@version = options[:version]
|
@version = options[:version]
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ begin
|
|||||||
# seclists.org redirects to the homepage if the reference does not exist
|
# seclists.org redirects to the homepage if the reference does not exist
|
||||||
# TODO : the special case above
|
# TODO : the special case above
|
||||||
if @check_vuln_ref_urls
|
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]
|
error_codes = [404, 500, 403]
|
||||||
not_found_regexp = %r{No Results Found|error 404|ID Invalid or Not Found}i
|
not_found_regexp = %r{No Results Found|error 404|ID Invalid or Not Found}i
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user