Land #9442, Remove NoMethod Rescue for cerberus_sftp_enumusers

Land #9442
4.x
Wei Chen 2018-01-22 13:39:16 -06:00 committed by Jeffrey Martin
parent 7da3bdd081
commit ab610f599b
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 1 additions and 4 deletions

View File

@ -118,10 +118,7 @@ class MetasploitModule < Msf::Auxiliary
begin begin
::Timeout.timeout(datastore['SSH_TIMEOUT']) do ::Timeout.timeout(datastore['SSH_TIMEOUT']) do
begin auth.authenticate("ssh-connection", user, pass)
auth.authenticate("ssh-connection", user, pass)
rescue NoMethodError
end
auth_method = auth.allowed_auth_methods.join('|') auth_method = auth.allowed_auth_methods.join('|')
if auth_method != '' if auth_method != ''
:success :success