Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How to execute a script from a browser? [closed]

Writer Sebastian Wright

I've abash script on my machine and my client needs to use this script through remote connections. I don't want them to access my source code so I have to give them a tool i.e a html page through which they can only execute my script without being able to view or modify the script.

How can I do that?

6

1 Answer

Not by default from a browser unless you can find and exploit a bug that lets you. Browsers are sandboxed to prevent executing code on the system itself.

What you would need to execute a script from a browser:

  • Apache. There is a package called lampserver that installs a working webserver with apache, mysql, and support for using php, perl, python.
  • A coding language supported by your browser to create something clickable (javascript, php, etc) in the browser.
  • Software on the server to act on that clickable something and execute that script you want to start.