You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
While testing the latest version of Out-EncryptedScript, we noticed that you modified the latest version to take in the script in the form of Text.Encoding::ASCII.GetBytes. This will mangle the script when it is decrypted on the other side.
Using your original code of just grabbing the script in Byte format instead of ASCII will result in the original script executing properly.
I tested this with Invoke-Mimikatz.ps1
Changing line #83 in Out-EncryptedScript.ps1 back to: [Byte[]] $scriptBytes = Get-Content -Encoding byte -Path $ScriptPath
will correct this problem.