Use Failure::NoAccess as a better failure error, as we are trying to login

Co-authored-by: Christophe De La Fuente <56716719+cdelafuente-r7@users.noreply.github.com>
This commit is contained in:
Stephen Fewer 2024-03-13 09:12:56 +00:00 committed by GitHub
parent 46dd21d69d
commit d7bf7bc2ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ class MetasploitModule < Msf::Exploit::Remote
# A failed login attempt will return in a 401. We expect a 302 redirect upon success.
if res&.code == 401
fail_with(Failure::UnexpectedReply, 'Failed to login with new admin user credentials.')
fail_with(Failure::NoAccess, 'Failed to login with new admin user credentials.')
end
else
unless res&.code == 200