1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Use a form of the socket create call that actually pivots

git-svn-id: file:///home/svn/framework3/trunk@9789 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-07-12 03:30:08 +00:00
parent 37f4783d55
commit 06e49b9287
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class Metasploit3 < Msf::Auxiliary
# Create an unbound UDP socket if no CHOST is specified, otherwise
# create a UDP socket bound to CHOST (in order to avail of pivoting)
udp_sock = Rex::Socket::Udp.create( {
'LocalHost' => datastore['CHOST'] || '0.0.0.0',
'LocalHost' => datastore['CHOST'] || nil,
'PeerHost' => ip, 'PeerPort' => port,
'Context' => {'Msf' => framework, 'MsfExploit' => self}
})

View File

@ -50,7 +50,7 @@ class Metasploit3 < Msf::Auxiliary
# Create an unbound UDP socket if no CHOST is specified, otherwise
# create a UDP socket bound to CHOST (in order to avail of pivoting)
udp_sock = Rex::Socket::Udp.create( {
'LocalHost' => datastore['CHOST'] || '0.0.0.0',
'LocalHost' => datastore['CHOST'] || nil,
'PeerHost' => ip, 'PeerPort' => rport,
'Context' => {'Msf' => framework, 'MsfExploit' => self}
})