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:
parent
46dd21d69d
commit
d7bf7bc2ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue