Badgerati / Pode.Web

Web template framework for use with the Pode PowerShell web server
MIT License
183 stars 23 forks source link

Converting server.ps1 to exe #546

Open fitzwar opened 4 months ago

fitzwar commented 4 months ago

Question

Hi,

I wanted to know if anyone has tried converting the server.ps1 into an exe and if this is supported with pode.web?

The reason is because i've nearly finished developing a portal im going to sell to clients and want to hide the code to stop clients from seeing the powershell code within the server.ps1 file and any potential competitors stealing the code

Thanks Andrew

Szeraax commented 4 months ago

Converting to exe does NOT stop people from being able to access code. You're welcome to try using ps2exe or Win-PS2EXE, but you must understand that if I had that exe, it would be trivial to go and pull your code out of it. Feel free to report back about compiling and whether that works or not.

RobinBeismann commented 4 months ago

Converting to exe does NOT stop people from being able to access code. You're welcome to try using ps2exe or Win-PS2EXE, but you must understand that if I had that exe, it would be trivial to go and pull your code out of it. Feel free to report back about compiling and whether that works or not.

PS2EXE compiled scripts actually even have an -extract switch to get to the code.