See #859. Adds keyboard-interactive as an acceptable method of authentication.

git-svn-id: file:///home/svn/framework3/trunk@8548 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2010-02-18 16:11:58 +00:00
parent 350c189a34
commit c24a708db6
1 changed files with 7 additions and 3 deletions

View File

@ -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