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