Skip to content

Commit b9b488c

Browse files
committed
Deleted unused exception handling
1 parent c60fa49 commit b9b488c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

modules/exploits/multi/misc/java_rmi_server.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,7 @@ def primer
152152
arguments: build_dgc_clean_args(new_url)
153153
)
154154

155-
begin
156-
# There should be a session...
157-
return_value = recv_return
158-
rescue Rex::StreamClosedError
159-
disconnect
160-
return
161-
end
155+
return_value = recv_return
162156

163157
if return_value.nil? && !session_created?
164158
fail_with(Failure::Unknown, 'RMI Call failed')

0 commit comments

Comments
 (0)