Add context to the socket

This commit is contained in:
jvazquez-r7
2014-06-04 14:25:01 -05:00
parent 77eeb5209a
commit b76253f9ff
@@ -450,7 +450,12 @@ class Metasploit3 < Msf::Exploit::Remote
rex_socket = Rex::Socket::Tcp.create(
'PeerHost' => rhost,
'PeerPort' => datastore['BREAKPOINT_PORT']
'PeerPort' => datastore['BREAKPOINT_PORT'],
'Context' =>
{
'Msf' => framework,
'MsfExploit' => self,
}
)
add_socket(rex_socket)