将obfsproxy作为win系统服务运行(win7已测)
本帖最后由 lazyzhu 于 2013-3-6 19:56 编辑这是原创,不得转载!
添加obfsproxy服务:
@cd /d "%~dp0"
@echo.
start runassrv.exe add /cmdline:"
D:\Path\To\obfsproxy.exe
--log-file=obfsproxy.log --log-min-severity=info obfs2 --shared-secret=
PassWord
--dest=
ServerIP:123
client
127.0.0.1:321
" /name:"obfsproxy" /dispname:"obfsproxy" /desc:"obfsproxy service" /type:"OwnProcess" /starttype:"DemandStart" /errctl:"ErrorNormal"
@echo.
@pause
starttype:
DemandStart=手动
AutoStart=自动
移除obfsproxy服务:
@cd /d "%~dp0"
@echo.
start runassrv.exe stop /name:"obfsproxy"
@echo.
start runassrv.exe remove /name:"obfsproxy"
@echo.
@pause
停止obfsproxy服务:
@cd /d "%~dp0"
start runassrv.exe stop /name:"obfsproxy"
@echo.
@exit
启动obfsproxy服务:
@cd /d "%~dp0"
start runassrv.exe start /name:"obfsproxy"
@echo.
@exit
所有命令复制到bat文件运行
相关工具下载:
http://baiy.cn/utils/runassrv/index.htm
runassrv.exe
https://www.torproject.org/dist/torbrowser/tor-obfsproxy-browser-2.4.9-alpha-1_en-US.exe
只要提取obfsproxy.exe,libeay32.dll两个文件就够了
页:
[1]