Skip to content

Commit 325ad72

Browse files
committed
if multi/handler is disabled, exit
1 parent 0e4fc48 commit 325ad72

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)