diff --git a/modules/exploits/multi/misc/java_rmi_server.rb b/modules/exploits/multi/misc/java_rmi_server.rb index a4991771c4..c9bac09091 100644 --- a/modules/exploits/multi/misc/java_rmi_server.rb +++ b/modules/exploits/multi/misc/java_rmi_server.rb @@ -153,6 +153,7 @@ class Metasploit3 < Msf::Exploit::Remote ) begin + # There should be a session... return_value = recv_return rescue Rex::StreamClosedError disconnect