自建FRP穿透,后续BAT代码修改后重启

frpc注册为系统服务自动启动
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Frpc]
"DisplayName"="Frpc"
"Descrīption"="v1.0"
"ImagePath"="C:\\frpc\\frpc_auto.exe"
"ObjectName"="LocalSystem"
"ErrorControl"=dword:00000001
"Start"=dword:00000002
"Type"=dword:00000010

VBS启动代码

Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c c:\frpc\frpc.exe -c c:\frpc\frpc.ini",vbhide

重启

taskkill /f /im frpc.exe 1>nul 2>nul
echo.
echo  关闭后台frpc完成
ping 127.0.0.1 -n 15 >nul
ECHO.
echo start
start "" "C:\frpc\frpc_auto.exe"
exit

 

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享