Skip to content

Commit

Permalink
Land rapid7#9442, Remove NoMethod Rescue for cerberus_sftp_enumusers
Browse files Browse the repository at this point in the history
  • Loading branch information
wchen-r7 authored and jmartin-tech committed Jan 24, 2018
1 parent 497345a commit 0b8520e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/auxiliary/scanner/ssh/cerberus_sftp_enumusers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ def check_user(ip, user, port)

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
Expand Down

0 comments on commit 0b8520e

Please sign in to comment.