I want to execute an exe on the server running a PHP/ASP Web server. Can i write any php/asp file for the same that will initiate the exe on the web server. Do I need to give explicit permissions or permissions are given by default.. or is there any security hole?
Share
In answer to the “Can I…?” portion of the question : yes, you can.
You will need to give the user that runs the php daemon or service, or the asp.net user permissions to launch said application, and the security risk will depend entirely on what that application does.
Here’s how it would work in ASP.NET:
First, make sure you put the .exe file in the App_Code folder of your project!