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)