Version of the plugin found by aggressive detection is now output with the name

This commit is contained in:
Erwan
2012-07-26 13:47:42 +02:00
parent 45d171bbed
commit 62e21ba1e8
4 changed files with 27 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ module WpPlugins
request_count += 1
request.on_complete do |response|
print "\rChecking for " + targets_url.size.to_s + " total plugins... #{(request_count * 100) / targets_url.size}% complete." if show_progress_bar
print "\rChecking for #{targets_url.size} total plugins... #{(request_count * 100) / targets_url.size}% complete." if show_progress_bar
if valid_response_codes.include?(response.code)
if Digest::MD5.hexdigest(response.body) != local_404_hash

View File

@@ -48,6 +48,11 @@ class WpPlugin < Vulnerable
response.body[%r{stable tag: #{WpVersion.version_pattern}}i, 1]
end
def to_s
version = version()
"#{@name}#{' v' + version if version}"
end
# Discover any error_log files created by WordPress
# These are created by the WordPress error_log() function
# They are normally found in the /plugins/ directory,