本文转载自,尊重原创:https://blog.csdn.net/u011563755/article/details/78610898?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param
步骤
-
在注册表中写入如下内容:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Webshell] @="URL:Webshell Protocol Handler" "URL Protocol"="" [HKEY_CLASSES_ROOT\Webshell\DefaultIcon] @="F:\\QQ\\Bin\\QQ.exe" [HKEY_CLASSES_ROOT\Webshell\shell] [HKEY_CLASSES_ROOT\Webshell\shell\open] [HKEY_CLASSES_ROOT\Webshell\shell\open\command] @="\"F:\\QQ\\Bin\\QQ.exe\" \"%1\""
-
新建html,写下链接:(也可直接访问,具体往下滑)
<a href="Webshell:\">运行exe</a>
-
点击运行
-
查看结果
也可执行bat,从bat中执行exe
reg稍微修改一下:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Webshell]
@="URL:Webshell Protocol Handler"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\Webshell\DefaultIcon]
@="F:\\QQ\\Bin\\QQ_web.bat"
[HKEY_CLASSES_ROOT\Webshell\shell]
[HKEY_CLASSES_ROOT\Webshell\shell\open]
[HKEY_CLASSES_ROOT\Webshell\shell\open\command]
@="\"F:\\QQ\\Bin\\QQ_web.bat\" \"%1\""
建立bat文件,写入
start F:\QQ\Bin\QQ.exe
结果:
也可以不用创建html,直接访问:webshell://