From edb5fb202afc5b51de2386f30a0af606af41c1ff Mon Sep 17 00:00:00 2001 From: erwanlr Date: Sat, 13 Apr 2019 08:13:38 +0100 Subject: [PATCH] Removes check for 301 when enumerating plugins and themes --- app/finders/plugins/known_locations.rb | 4 ++-- app/finders/themes/known_locations.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/finders/plugins/known_locations.rb b/app/finders/plugins/known_locations.rb index fbc1a442..1e1f548f 100644 --- a/app/finders/plugins/known_locations.rb +++ b/app/finders/plugins/known_locations.rb @@ -9,7 +9,7 @@ module WPScan # @return [ Array ] def valid_response_codes - @valid_response_codes ||= [200, 401, 403, 301, 500].freeze + @valid_response_codes ||= [200, 401, 403, 500].freeze end # @param [ Hash ] opts @@ -19,7 +19,7 @@ module WPScan def aggressive(opts = {}) found = [] - enumerate(target_urls(opts), opts.merge(check_full_response: [200, 401, 403, 500])) do |_res, slug| + 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)) end diff --git a/app/finders/themes/known_locations.rb b/app/finders/themes/known_locations.rb index df00086f..30567caf 100644 --- a/app/finders/themes/known_locations.rb +++ b/app/finders/themes/known_locations.rb @@ -9,7 +9,7 @@ module WPScan # @return [ Array ] def valid_response_codes - @valid_response_codes ||= [200, 401, 403, 301, 500].freeze + @valid_response_codes ||= [200, 401, 403, 500].freeze end # @param [ Hash ] opts @@ -19,7 +19,7 @@ module WPScan def aggressive(opts = {}) found = [] - enumerate(target_urls(opts), opts.merge(check_full_response: [200, 401, 403, 500])) do |_res, slug| + 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)) end