Land #9442, Remove NoMethod Rescue for cerberus_sftp_enumusers
Land #9442MS-2855/keylogger-mettle-extension
commit
65781efa9e
|
@ -118,10 +118,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
|
||||
begin
|
||||
::Timeout.timeout(datastore['SSH_TIMEOUT']) do
|
||||
begin
|
||||
auth.authenticate("ssh-connection", user, pass)
|
||||
rescue NoMethodError
|
||||
end
|
||||
auth.authenticate("ssh-connection", user, pass)
|
||||
auth_method = auth.allowed_auth_methods.join('|')
|
||||
if auth_method != ''
|
||||
:success
|
||||
|
|
Loading…
Reference in New Issue