0

Is it possible to write javascript that will execute a python script with a pre-set file location in a user's local hard disk ... and then collect the output for processing ?

Something like http://www.jailbreakme.com//#

2
  • How about doing something like this : jailbreakme.com//# Commented Sep 13, 2011 at 4:42
  • It may be possible under Win - JScript (something like JavaScript, almost ) can be used in shell. I`m not sure it is achievable. Commented Sep 13, 2011 at 21:19

4 Answers 4

2

No it is not possible. You cannot cause arbitrary programs to be executed on a user's computer without the user installing it, otherwise this would be a grievous security vulnerability.

Sign up to request clarification or add additional context in comments.

Comments

0

If you're talking about Javascript run through a browser - no. The browsers will contain javascript execution in a sandbox and won't let it touch non-web related content. Which is GOOD.

Comments

0

No, for good reasons JavaScript does not have access to much of anything on the remote user's computer.

Imagine how insecure the Internet would be if every website you visited could run any random code. (This is why IE's security vulns are so bad.)

Comments

0

To do something like this, you would have to get the user to install a browser plug-in that could have access to the file system. As others have said, normal browser code does not have access to the file system in any way because of serious security issues.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.