See #859. Adds keyboard-interactive as an acceptable method of authentication.
git-svn-id: file:///home/svn/framework3/trunk@8548 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
350c189a34
commit
c24a708db6
|
@ -57,13 +57,17 @@ class Metasploit3 < Msf::Auxiliary
|
|||
end
|
||||
|
||||
def do_login(ip,user,pass,port)
|
||||
opt_hash = {
|
||||
:password => pass,
|
||||
:auth_methods => ['password','keyboard-interactive'],
|
||||
:port => port
|
||||
}
|
||||
|
||||
begin
|
||||
self.ssh_socket = Net::SSH.start(
|
||||
ip,
|
||||
user,
|
||||
:password => pass,
|
||||
:auth_methods => ['password'],
|
||||
:port => port
|
||||
opt_hash
|
||||
)
|
||||
rescue Rex::ConnectionError
|
||||
return :connection_error
|
||||
|
|
Loading…
Reference in New Issue