Skip to content

Commit 88bdee4

Browse files
committed
Pass service name in env to the encoders
1 parent 3105ff3 commit 88bdee4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/exploits/windows/smb/psexec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ def powershell_installed?
165165
end
166166

167167
def powershell
168+
ENV['MSF_SERVICENAME'] = datastore['SERVICE_NAME']
168169
command = cmd_psh_payload(payload.encoded, payload_instance.arch.first)
169170

170171
if datastore['PSH::persist'] and not datastore['DisablePayloadHandler']

0 commit comments

Comments
 (0)