Suppose the uri of that executable is known:http://domain.name/exe_uri

Will it be executed if we just type it in the address bar?

link|improve this question

13% accept rate
feedback

2 Answers

The answer is "it depends." If your executable is within the web root and has been configured to run as a CGI and has the correct permissions set, then yes, it will run.

If you just have some random file located within your web space, chances are it will just prompt for download. Your web server will treat it as it would any other blob of data on disk.

More specifically, what are you trying to accomplish? Perhaps the answer can be narrowed a bit depending on what you actually want to do.

link|improve this answer
feedback

No, that'll just serve the file for you to download.

You need to use a shell to execute the file, or some server side scripting. For example, in Perl/PHP:

./thebinaryfileyouwanttoexecute;

is sufficient.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.