Clean up powershell exec string

The scriptblock invocation is already coming from Rex, so there's
no need to re-wrap the executed code in more of the same.
bug/bundler_fix
RageLtMan 2017-10-06 13:19:36 -04:00
parent 9afdde2938
commit 124a1531f4
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ module Payload::Windows::Powershell
executionpolicy: 'bypass'
}
cli = Rex::Powershell::Command.generate_psh_command_line(command_args)
return "#{cli} '&([scriptblock]::create(#{script})'"
return "#{cli} \"#{script}\""
end
def generate