More dead code and tweaks.

bug/bundler_fix
Joe Vennix 2013-11-20 14:44:53 -06:00
parent 3ff9da5643
commit 739c7b4ca2
2 changed files with 9 additions and 15 deletions

View File

@ -98,15 +98,15 @@ module Exploit::Remote::Tcp
end
nsock = Rex::Socket::Tcp.create(
'PeerHost' => opts['RHOST'] || rhost,
'PeerPort' => (opts['RPORT'] || rport).to_i,
'LocalHost' => opts['CHOST'] || chost || "0.0.0.0",
'LocalPort' => (opts['CPORT'] || cport || 0).to_i,
'SSL' => dossl,
'SSLVersion' => opts['SSLVersion'] || ssl_version,
'Proxies' => proxies,
'Timeout' => (opts['ConnectTimeout'] || connect_timeout || 10).to_i,
'Context' =>
'PeerHost' => opts['RHOST'] || rhost,
'PeerPort' => (opts['RPORT'] || rport).to_i,
'LocalHost' => opts['CHOST'] || chost || "0.0.0.0",
'LocalPort' => (opts['CPORT'] || cport || 0).to_i,
'SSL' => dossl,
'SSLVersion' => opts['SSLVersion'] || ssl_version,
'Proxies' => proxies,
'Timeout' => (opts['ConnectTimeout'] || connect_timeout || 10).to_i,
'Context' =>
{
'Msf' => framework,
'MsfExploit' => self,

View File

@ -89,12 +89,6 @@ begin
self.sslctx.ciphers = params.ssl_cipher
end
if params.ssl_compression
self.sslctx.options &= ~OpenSSL::SSL::OP_NO_COMPRESSION
else
self.sslctx.options |= OpenSSL::SSL::OP_NO_COMPRESSION
end
# Set the verification callback
self.sslctx.verify_callback = Proc.new do |valid, store|
self.peer_verified = valid