Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Out-EncryptedScript.ps1 - Issues with ASCII Encoding #80

@aconite33

Description

@aconite33

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions