Land #9442, Remove NoMethod Rescue for cerberus_sftp_enumusers

Land #9442
MS-2855/keylogger-mettle-extension
Wei Chen 2018-01-22 13:39:16 -06:00
commit 65781efa9e
No known key found for this signature in database
GPG Key ID: 6E162ED2C01D9AAC
1 changed files with 1 additions and 4 deletions

View File

@ -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