parent
7da3bdd081
commit
ab610f599b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue