Product, version and build: 5.6.156
32 or 64 bit version of product: 64bit
Operating system: Windows 10
32 or 64 bit OS: 64bit
Hi,
Wondering if there's any possible option/feature request when compiling a script to an exe that it can obfuscate the code.
Basic options to say "remove all comments" when compiling. Or "change function names and variable names to random values" would be a good start.
Main goal is to make it harder for someone to easily copy the code and understand it. While there is the Script block logging, and block transcripts options both require administrator access and thats not always suitable. There's opensource options out there but doesnt compile within the exe and a few steps to get it working. Example:
https://github.com/danielbohannon/Invoke-Obfuscation
Options when compiling to Exe - feature request
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Options when compiling to Exe - feature request
I will bring this up with the team. In the meantime, please submit a feature request here:
https://sapien.com/requests
As it stands now, you would have to obfuscate the script to a second file using the module and then use the obfuscated file to create the packaged in PowerShell Studio.
It is possible to create some custom menu action that accomplishes this:
https://www.sapien.com/blog/2016/05/23/ ... -the-menu/
https://sapien.com/requests
As it stands now, you would have to obfuscate the script to a second file using the module and then use the obfuscated file to create the packaged in PowerShell Studio.
It is possible to create some custom menu action that accomplishes this:
https://www.sapien.com/blog/2016/05/23/ ... -the-menu/
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.