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:
parent
37f4783d55
commit
06e49b9287
@ -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}
|
||||
})
|
||||
|
@ -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}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user