Dont need to bypass

bug/bundler_fix
Meatballs 2013-09-17 19:12:49 +01:00
parent d6f2da690a
commit 9aca98a9d4
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ module Exploit::Powershell
# Runs powershell in hidden window raising interactive proc msg
#
def run_hidden_psh(ps_code,ps_bin='powershell.exe')
ps_args = "-w hidden -nop -ep bypass -e #{ compress_script(ps_code) }"
ps_args = "-w hidden -nop -e #{ compress_script(ps_code) }"
ps_wrapper = <<EOS
$si=New-Object System.Diagnostics.ProcessStartInfo
@ -119,7 +119,7 @@ EOS
# Wrap in hidden runtime
psh_payload = run_hidden_psh(psh_payload,ps_bin)
# Convert to base64 for -encodedcommand execution
command = "%COMSPEC% /B /C start /min powershell.exe -w hidden -nop -ep bypass -c #{psh_payload}\r\n"
command = "%COMSPEC% /B /C start /min powershell.exe -nop -c #{psh_payload}\r\n"
end