mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 12:41:45 +00:00
22 lines
562 B
JSON
22 lines
562 B
JSON
|
{
|
||
|
"name": "SOCKS",
|
||
|
"cmd": "[void] 'Toggle SOCKS v5'; $PRSW_ARG",
|
||
|
"set": [
|
||
|
{
|
||
|
"args": [
|
||
|
"Start-Process -FilePath 'cmd.exe' -ArgumentList '/c', 'start', 'ssh', '-D', 'PORT', '-q', '-C', '-N', '-f', 'HOST'"
|
||
|
],
|
||
|
"type": "variable",
|
||
|
"discard": true
|
||
|
}
|
||
|
],
|
||
|
"unset": [
|
||
|
{
|
||
|
"args": [
|
||
|
"TASKKILL /F /PID ((Get-NetTCPConnection -LocalPort 1337).OwningProcess | Select -First 1)"
|
||
|
],
|
||
|
"type": "variable"
|
||
|
}
|
||
|
]
|
||
|
}
|