Skip to content

Commit 90c0f58

Browse files
committed
Fix for newer powershell
1 parent 15c1ab6 commit 90c0f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/post/windows/runas.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def execute_exe(filename = nil, path = nil, upload = nil)
2525
end
2626

2727
def execute_psh
28-
powershell_command = cmd_psh_payload(payload.encoded)
28+
powershell_command = cmd_psh_payload(payload.encoded, payload_instance.arch.first)
2929
command = 'cmd.exe'
3030
args = "/c #{powershell_command}"
3131
shell_exec(command, args)

0 commit comments

Comments
 (0)