This commit is contained in:
erwanlr
2019-08-06 13:01:22 +01:00
parent c5989477a4
commit 8ee9b2bc31
2 changed files with 62 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ module WPScan
def valid_credentials?(response)
response.code == 302 &&
response.headers['Set-Cookie']&.any? { |cookie| cookie =~ /wordpress_logged_in_/i }
[*response.headers['Set-Cookie']]&.any? { |cookie| cookie =~ /wordpress_logged_in_/i }
end
def errored_response?(response)