Skip to content

Commit d843750

Browse files
committed
Land rapid7#9639, multi/handler exit on disabled handler
If DisablePayloadHandler is set, abort instead of hanging.
2 parents 2d5f089 + 325ad72 commit d843750

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/exploits/multi/handler.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ def initialize(info = {})
5252
end
5353

5454
def exploit
55+
if datastore['DisablePayloadHandler']
56+
print_error "DisablePayloadHandler is enabled, so there is nothing to do. Exiting!"
57+
return
58+
end
59+
5560
stime = Time.now.to_f
5661
timeout = datastore['ListenerTimeout'].to_i
5762
loop do

0 commit comments

Comments
 (0)