Web browser Fetch Local program

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.