Version of the plugin found by aggressive detection is now output with the name
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user