add http proxy batch script
This commit is contained in:
parent
bd3238931d
commit
273ff8c74d
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
```
|
Loading…
Reference in New Issue