New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error using --base64 Option #4
Comments
Hi @MaxMax147 , I think this should be related to the encoding used by the script. Can you try to change line 440:
with this one:
And tell me if it works like that? |
It still doesn't work, but I think it has something to do with the encoding.  is the BOM of UTF-8 in Windows-1252. I tried changing the encoding to utf-8 or utf-8-sig, but it made no difference. |
I found out what the problem was. The PowerShell ISE save a skript as utf-8 with BOM for some reason. I just opened the skripts in Notepad++ and saved them with a different encoding. |
That's great @MaxMax147! I never work in ISE and just tried it now to confirm this behaviour. Now that I know what is the problem, I can address it in the code itself. Thanks for the help here! ;) |
Hey,
When I use --base64 to obfuscate a script the resulting script can not be executed.
The error is:
As you can see the highlighted section contains some invalid characters. Any reasons why this happens? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered: