Skip to content

Commit 555140b

Browse files
committed
Add warning for persist
1 parent 44cdc0a commit 555140b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/exploits/windows/smb/psexec_psh.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def initialize(info = {})
7474
def exploit
7575
command = cmd_psh_payload(payload.encoded)
7676

77+
if datastore['PERSIST'] and not datastore['DisablePayloadHandler']
78+
print_warning("You probably want to DisablePayloadHandler and use exploit/multi/handler with the PERSIST option.")
79+
end
80+
7781
#Try and authenticate with given credentials
7882
if connect
7983
begin

0 commit comments

Comments
 (0)