Skip to content

Commit 394c31c

Browse files
committed
Remove NoMethod Rescue for cerberus_sftp_enumusers
Please see reasons in rapid7#9436
1 parent 38d056b commit 394c31c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/auxiliary/scanner/ssh/cerberus_sftp_enumusers.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ def check_user(ip, user, port)
118118

119119
begin
120120
::Timeout.timeout(datastore['SSH_TIMEOUT']) do
121-
begin
122-
auth.authenticate("ssh-connection", user, pass)
123-
rescue NoMethodError
124-
end
121+
auth.authenticate("ssh-connection", user, pass)
125122
auth_method = auth.allowed_auth_methods.join('|')
126123
if auth_method != ''
127124
:success

0 commit comments

Comments
 (0)