From b76253f9ffb0941bfb7135db77e6a42bbe9fc633 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Wed, 4 Jun 2014 14:25:01 -0500 Subject: [PATCH] Add context to the socket --- modules/exploits/multi/misc/java_jdwp_debugger.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/exploits/multi/misc/java_jdwp_debugger.rb b/modules/exploits/multi/misc/java_jdwp_debugger.rb index aefb7c55ae..4c3c7a5991 100644 --- a/modules/exploits/multi/misc/java_jdwp_debugger.rb +++ b/modules/exploits/multi/misc/java_jdwp_debugger.rb @@ -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)