Options when compiling to Exe - feature request

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
granttt
Posts: 1
Joined: Mon Oct 08, 2018 8:40 pm

Options when compiling to Exe - feature request

Post by granttt » Thu Feb 07, 2019 7:43 pm

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

User avatar
davidc
Posts: 5839
Joined: Thu Aug 18, 2011 4:56 am

Re: Options when compiling to Exe - feature request

Post by davidc » Fri Feb 08, 2019 8:34 am

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/
David
SAPIEN Technologies, Inc.