Skip to content

Commit 1064049

Browse files
committed
Revert "Fix buggy calls to stop_service"
This reverts commit 613f530.
1 parent 613f530 commit 1064049

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/msf/core/exploit/http/server.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,8 @@ def exploit
10101010
::IO.select(nil, nil, nil, 5)
10111011
rescue ::Interrupt
10121012
raise $!
1013+
ensure
1014+
stop_service
10131015
end
10141016
end
10151017

modules/exploits/multi/http/jboss_maindeployer.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ def exploit
217217
end
218218
end
219219

220+
print_status("Shutting down the web service...")
221+
stop_service
222+
220223

221224
#
222225
# EXECUTE

0 commit comments

Comments
 (0)