add http proxy batch script

This commit is contained in:
fh0 2021-06-23 09:46:49 +08:00
parent bd3238931d
commit 273ff8c74d
2 changed files with 12 additions and 0 deletions

View File

@ -25,3 +25,7 @@ The compiled file is `target/release/stn`.
- `sniff` out, get http and https domain from tcp stream
- `redirect` out, like iptables DNAT
- `tun` in
## Script
- bat script to set http proxy

8
doc/http_bat.md Normal file
View File

@ -0,0 +1,8 @@
```bat
@REM set http proxy 127.0.0.1:1230
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d 127.0.0.1:1230 /f
@REM enable http proxy
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
@REM run stn background
mshta vbscript:createobject("wscript.shell").run("stn.exe -c config.json",0)(window.close)
```