Is there a way to make an HTML link that runs the program from the local computer?

For debugging purposes, it would be nice if I could make my page with click-displayed click names in the lines of the exception stack that opened them in my favorite editor . However, this will require me to execute the full command line - a simple link to the file will not be executed. It can be done?

The solution can only be IE, and it can use methods that require complete trust (I do not expect this to be otherwise). People will only use this on localhost, I will actually disable this feature when viewing the page remotely.

+1
source share
1 answer

You can add a new protocol in Windows, as described here .

This is especially good because it works in different browsers and does not require any specific browser settings.

Just be careful with this - adding a new protocol handler opens up potential, albeit very remote, vulnerabilities. When setting this parameter, never let the incoming URL be some kind of parameter for a common command interpreter (e.g. cmd ). Always associate it with an existing application that cannot do anything destructive without even using command line switches.

+5
source

Source: https://habr.com/ru/post/1347764/


All Articles