Merge branch 'powershell' of https://github.com/AlessandroZ/pupy into unstable

This commit is contained in:
n1nj4sec 2017-04-24 19:02:08 +02:00
commit 04e59320c3
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def execute_powershell_script(module, content, function, x64IfPossible=False, sc
# else: the powershell script is already loaded, call the function wanted
p.stdin.write("\n$a=Invoke-Expression \"%s\" | Format-Table | Out-String\n" % function)
p.stdin.write("\n$a=Invoke-Expression \"%s\" | Format-Table -Property * -AutoSize | Out-String -Width 4076\n" % function)
p.stdin.write("$b=[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(\"$a\"))\n")
p.stdin.write("Write-Host $b\n")