Find the path to the file you need to raise in your browser first on your computer
For example: C:\\windows\\system32\\notepad.exe
Create a new text file (the name is random, when the program is not used), in which to edit:
Windows Registry Editor Version 5.00
Version information, you can edit it yourself, or you can copy it directly
[Hkey_classes_root\program]
The Webshell here is defined by itself and is used when called in the Web
"URL Protocol" = "C:\\windows\\system32\\notepad.exe"
Find the path to the program you want to invoke
@= "Webshellprotocol"
The string after the @ is not used when it is called
[Hkey_classes_root\pebshell\defaulticon]
Add the branch, will not be used later, but this program must keep up with the face of the
@= "C:\\Program Files (x86) \\pwfileversion\\fileversion.exe,1"
To correspond to the C:\\windows\\system32\\notepad.exe path above, the following 1 must have
[Hkey_classes_root\program\shell]
Add the branch, the same as above the program corresponds to the good, the following two lines is the same
[Hkey_classes_root\program\shell\open]
[Hkey_classes_root\program\shell\open\command]
@= "\" c:\\windows\\system32\\notepad.exe\ "\"%1\ ""
Corresponds to the program path you want to call, and the following% 1 represents the parameter
When the configuration is complete, the suffix name of the text file is changed to. reg, and the registry information is configured. (Note: The above registry configuration code in Chinese is only an explanation, do not copy the Chinese also up)
After the registry configuration is complete, double-click there will be a reminder box, and here I am:
Clicking Yes means that the registry is already running and then using the a tag in the Web page (href = "program") (note: The value behind the href is the value defined by the second line, which is defined here: program). Cases:
You can also use JS to dynamically open the program (note: Webshell:hello in the Hollo is their own parameters, the parameters are different, open the file is not the same, the specific self can try), for example:
It is not difficult to do so much.
Web browser Fetch Local program