bugfixing
This commit is contained in:
@@ -61,7 +61,7 @@ class WpDetector
|
|||||||
|
|
||||||
names.each do |item|
|
names.each do |item|
|
||||||
items << {
|
items << {
|
||||||
:url => url,
|
:url => url,
|
||||||
:name => item,
|
:name => item,
|
||||||
:path => "#{type}/#{item}/",
|
:path => "#{type}/#{item}/",
|
||||||
:wp_content_dir => wp_content_dir
|
:wp_content_dir => wp_content_dir
|
||||||
|
|||||||
@@ -50,11 +50,12 @@ class WpEnumerator
|
|||||||
enumerate_size = targets.size
|
enumerate_size = targets.size
|
||||||
|
|
||||||
targets.each do |target|
|
targets.each do |target|
|
||||||
if options[:type] =~ /timthumbs/i
|
# Timthumb files have no /timthumbs/ directory
|
||||||
url = "#{target[:url]}#{target[:wp_content_dir]}/#{target[:path]}"
|
unless options[:type] =~ /timthumbs/i
|
||||||
else
|
target[:path] = "#{options[:type]}/#{target[:path]}"
|
||||||
url = "#{target[:url]}#{target[:wp_content_dir]}/#{options[:type]}/#{target[:path]}"
|
|
||||||
end
|
end
|
||||||
|
url = "#{target[:url]}#{target[:wp_content_dir]}/#{target[:path]}"
|
||||||
|
|
||||||
request = enum_browser.forge_request(url, :cache_timeout => 0, :follow_location => true)
|
request = enum_browser.forge_request(url, :cache_timeout => 0, :follow_location => true)
|
||||||
request_count += 1
|
request_count += 1
|
||||||
|
|
||||||
@@ -120,7 +121,7 @@ class WpEnumerator
|
|||||||
if targets_url.grep(%r{/#{item_name}/}).empty?
|
if targets_url.grep(%r{/#{item_name}/}).empty?
|
||||||
targets_url << {
|
targets_url << {
|
||||||
:url => url,
|
:url => url,
|
||||||
:path => "#{type}/#{item_name}",
|
:path => item_name,
|
||||||
:wp_content_dir => wp_content_dir,
|
:wp_content_dir => wp_content_dir,
|
||||||
:name => item_name
|
:name => item_name
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,8 +90,8 @@ begin
|
|||||||
|
|
||||||
wp_theme = wp_target.theme
|
wp_theme = wp_target.theme
|
||||||
if wp_theme
|
if wp_theme
|
||||||
theme_version = wp_theme.version
|
# Theme version is handled in wp_item.to_s
|
||||||
puts "[!] The WordPress theme in use is #{wp_theme}#{' v' + theme_version if theme_version}"
|
puts "[!] The WordPress theme in use is #{wp_theme}"
|
||||||
|
|
||||||
theme_vulnerabilities = wp_theme.vulnerabilities
|
theme_vulnerabilities = wp_theme.vulnerabilities
|
||||||
unless theme_vulnerabilities.empty?
|
unless theme_vulnerabilities.empty?
|
||||||
|
|||||||
Reference in New Issue
Block a user