diff --git a/app/finders/plugins/known_locations.rb b/app/finders/plugins/known_locations.rb index 794560c6..b291d974 100644 --- a/app/finders/plugins/known_locations.rb +++ b/app/finders/plugins/known_locations.rb @@ -19,8 +19,12 @@ module WPScan def aggressive(opts = {}) found = [] - enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |_res, slug| - found << Model::Plugin.new(slug, target, opts.merge(found_by: found_by, confidence: 80)) + enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |res, slug| + finding_opts = opts.merge(found_by: found_by, + confidence: 80, + interesting_entries: ["#{res.effective_url}, status: #{res.code}"]) + + found << Model::Plugin.new(slug, target, finding_opts) raise Error::PluginsThresholdReached if opts[:threshold].positive? && found.size >= opts[:threshold] end diff --git a/app/finders/themes/known_locations.rb b/app/finders/themes/known_locations.rb index b7aef9e1..52677f0f 100644 --- a/app/finders/themes/known_locations.rb +++ b/app/finders/themes/known_locations.rb @@ -19,8 +19,12 @@ module WPScan def aggressive(opts = {}) found = [] - enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |_res, slug| - found << Model::Theme.new(slug, target, opts.merge(found_by: found_by, confidence: 80)) + enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |res, slug| + finding_opts = opts.merge(found_by: found_by, + confidence: 80, + interesting_entries: ["#{res.effective_url}, status: #{res.code}"]) + + found << Model::Theme.new(slug, target, finding_opts) raise Error::ThemesThresholdReached if opts[:threshold].positive? && found.size >= opts[:threshold] end