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
If you apply any of the string obfuscations on a multiline string with a variable substitution, the variable will be treated as a normal part of the string and thus won't be substituted.
Example script:
$script="hello"$ps=@"$script"@Write-Output$ps;
After applying the Token\String\2 obfuscation on it:
Calling the obfuscated script results in this being printed:
"
$script
"
instead of hello.
As far as I know there is currently no way to obfuscate this script correctly, without just abandoning the script obfuscation entirely. I'm using version 1.8, by the way.
The text was updated successfully, but these errors were encountered:
If you apply any of the string obfuscations on a multiline string with a variable substitution, the variable will be treated as a normal part of the string and thus won't be substituted.
Example script:
After applying the
Token\String\2
obfuscation on it:Calling the obfuscated script results in this being printed:
instead of
hello
.As far as I know there is currently no way to obfuscate this script correctly, without just abandoning the script obfuscation entirely. I'm using version 1.8, by the way.
The text was updated successfully, but these errors were encountered: