dd Opt::Proxies and opthash[:proxies] to exploits

unstable
RageLtMan 2012-08-12 16:29:39 -04:00
parent 33c74c97e2
commit 3711297719
2 changed files with 5 additions and 2 deletions

View File

@ -52,6 +52,7 @@ class Metasploit3 < Msf::Exploit::Remote
# Since we don't include Tcp, we have to register this manually # Since we don't include Tcp, we have to register this manually
Opt::RHOST(), Opt::RHOST(),
Opt::RPORT(22), Opt::RPORT(22),
Opt::Proxies
], self.class ], self.class
) )
@ -81,7 +82,8 @@ class Metasploit3 < Msf::Exploit::Remote
:key_data => [ key_data ], :key_data => [ key_data ],
:disable_agent => true, :disable_agent => true,
:config => false, :config => false,
:record_auth_info => true :record_auth_info => true,
:proxies => datastore['Proxies']
} }
opt_hash.merge!(:verbose => :debug) if datastore['SSH_DEBUG'] opt_hash.merge!(:verbose => :debug) if datastore['SSH_DEBUG']
begin begin

View File

@ -217,7 +217,8 @@ class Metasploit3 < Msf::Exploit::Remote
{ {
:password => pass, :password => pass,
:port => datastore['RPORT'], :port => datastore['RPORT'],
:timeout => 1 :timeout => 1,
:proxies => datastore['Proxies']
}) })
::Timeout.timeout(1) {ssh.close} rescue nil ::Timeout.timeout(1) {ssh.close} rescue nil