0

Is there a reliable crossbrowser way to open up a shell using javascript (e.g. explorer.exe)?

3 Answers 3

5

This is not possible as it would be a (gaping) security risk.

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

2 Comments

Disregarding the gaping security risk it would be awfully convenient for me ;)
@kustnodi, Too bad. The browser environment is meant to be sandboxed.
1

No, that is not possible for security reasons. Accessing client machine is the problme here !

Comments

0

If you have access to the client machine, and the client machines are all Windows XP or later, there actually is a way by defining a custom protocol as described in this SO question (Mozillazone article here).

That way, you can create links like my_custom_protocol://helloworld.txt that cause an explorer window to be opened in Windows.

This potentially opens a (however remote) security hole, as connecting a custom protocol to explorer.exe could be used to send arbitrary parameters to that executable. Make sure you are aware of the security implications; depending on your situation, it might work for you, though.

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.