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
parent
9afdde2938
commit
124a1531f4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue