Skip to content

Commit ee9b1aa

Browse files
committed
Manage Rex::ConnectionRefused exceptions
1 parent 428fe00 commit ee9b1aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/misc/java_rmi_server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def exploit
100100
# When the server stops due primer failing, re-raise
101101
# RuntimeError so it won't wait the full wfs_delays
102102
raise ::RuntimeError, "Exploit aborted due to failure #{fail_reason} #{(fail_detail || "No reason given")}"
103-
rescue Rex::ConnectionTimeout => e
103+
rescue Rex::ConnectionTimeout, Rex::ConnectionRefused => e
104104
# When the primer fails due to an error connecting with
105105
# the rhost, re-raise RuntimeError so it won't wait the
106106
# full wfs_delays

0 commit comments

Comments
 (0)