From 2c1eb27f79bd699745f65b60d19407bf6bc5bbd5 Mon Sep 17 00:00:00 2001 From: Kazuki Onishi Date: Sat, 14 Oct 2023 01:21:27 +0900 Subject: [PATCH] Use valid_response_codes --- app/finders/db_exports/known_locations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/finders/db_exports/known_locations.rb b/app/finders/db_exports/known_locations.rb index 5e749eee..7d988eb2 100644 --- a/app/finders/db_exports/known_locations.rb +++ b/app/finders/db_exports/known_locations.rb @@ -21,7 +21,7 @@ module WPScan def aggressive(opts = {}) found = [] - enumerate(potential_urls(opts), opts.merge(check_full_response: [200, 206])) do |res| + enumerate(potential_urls(opts), opts.merge(check_full_response: valid_response_codes)) do |res| if res.effective_url.end_with?('.zip') next unless %r{\Aapplication/zip}i.match?(res.headers['Content-Type']) else