1、实现本地java程序
main方法实际入参为完整的webshell参数;eg: gbprinter://tst-api/archive/printer/getPrintConfigurationInfo?code=F:2023413813010442567
2、将java程序打包成exe可执行文件
https://blog.csdn.net/weixin_45149355/article/details/106839486
3、客户端机器注册webshell
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\gbprinter]
@="URL:bdogbprinter Protocol Handler"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\gbprinter\DefaultIcon]
@="d:\\tmp\\GBPRINTER.exe"
[HKEY_CLASSES_ROOT\gbprinter\shell]
[HKEY_CLASSES_ROOT\gbprinter\shell\open]
[HKEY_CLASSES_ROOT\gbprinter\shell\open\command]
@="\"d:\\tmp\\GBPRINTER.exe\" \"%1\""
4、网页调起客户端webshell
<a href="gbprinter://tst-api/archive/printer/getPrintConfigurationInfo?code=F:2023413813010442567">点我试试</a>