dd Opt::Proxies and opthash[:proxies] to exploits
parent
33c74c97e2
commit
3711297719
|
@ -52,6 +52,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
# Since we don't include Tcp, we have to register this manually
|
||||
Opt::RHOST(),
|
||||
Opt::RPORT(22),
|
||||
Opt::Proxies
|
||||
], self.class
|
||||
)
|
||||
|
||||
|
@ -81,7 +82,8 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
:key_data => [ key_data ],
|
||||
:disable_agent => true,
|
||||
:config => false,
|
||||
:record_auth_info => true
|
||||
:record_auth_info => true,
|
||||
:proxies => datastore['Proxies']
|
||||
}
|
||||
opt_hash.merge!(:verbose => :debug) if datastore['SSH_DEBUG']
|
||||
begin
|
||||
|
|
|
@ -217,7 +217,8 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
{
|
||||
:password => pass,
|
||||
:port => datastore['RPORT'],
|
||||
:timeout => 1
|
||||
:timeout => 1,
|
||||
:proxies => datastore['Proxies']
|
||||
})
|
||||
|
||||
::Timeout.timeout(1) {ssh.close} rescue nil
|
||||
|
|
Loading…
Reference in New Issue