Dont add extra space in args
parent
354311d191
commit
4c66e86f73
|
@ -167,17 +167,17 @@ module Exploit::Powershell
|
|||
# an additional space before to prevent Powershell code being
|
||||
# mangled.
|
||||
arg_string.gsub!(' -Command ', ' -c ')
|
||||
arg_string.gsub!('-EncodedCommand ', ' -e ')
|
||||
arg_string.gsub!('-ExecutionPolicy ', ' -ep ')
|
||||
arg_string.gsub!('-EncodedCommand ', '-e ')
|
||||
arg_string.gsub!('-ExecutionPolicy ', '-ep ')
|
||||
arg_string.gsub!(' -File ', ' -f ')
|
||||
arg_string.gsub!('-InputFormat ', ' -i ')
|
||||
arg_string.gsub!('-NoExit ', ' -noe ')
|
||||
arg_string.gsub!('-NoLogo ', ' -nol ')
|
||||
arg_string.gsub!('-NoProfile ', ' -nop ')
|
||||
arg_string.gsub!('-NonInteractive ', ' -noni ')
|
||||
arg_string.gsub!('-OutputFormat ', ' -o ')
|
||||
arg_string.gsub!('-Sta ', ' -s ')
|
||||
arg_string.gsub!('-WindowStyle ', ' -w ')
|
||||
arg_string.gsub!('-InputFormat ', '-i ')
|
||||
arg_string.gsub!('-NoExit ', '-noe ')
|
||||
arg_string.gsub!('-NoLogo ', '-nol ')
|
||||
arg_string.gsub!('-NoProfile ', '-nop ')
|
||||
arg_string.gsub!('-NonInteractive ', '-noni ')
|
||||
arg_string.gsub!('-OutputFormat ', '-o ')
|
||||
arg_string.gsub!('-Sta ', '-s ')
|
||||
arg_string.gsub!('-WindowStyle ', '-w ')
|
||||
end
|
||||
|
||||
#Strip off first space character
|
||||
|
|
Loading…
Reference in New Issue