From ab610f599be67b10c2e53a25b3cfd8edb8fb61ab Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Mon, 22 Jan 2018 13:39:16 -0600 Subject: [PATCH] Land #9442, Remove NoMethod Rescue for cerberus_sftp_enumusers Land #9442 --- modules/auxiliary/scanner/ssh/cerberus_sftp_enumusers.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/auxiliary/scanner/ssh/cerberus_sftp_enumusers.rb b/modules/auxiliary/scanner/ssh/cerberus_sftp_enumusers.rb index 7f27b990ac..47b5a792ee 100644 --- a/modules/auxiliary/scanner/ssh/cerberus_sftp_enumusers.rb +++ b/modules/auxiliary/scanner/ssh/cerberus_sftp_enumusers.rb @@ -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