From fec0d007a059d6c0ca00e5634da4965b98894cbb Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 24 Sep 2024 14:43:59 +0200 Subject: [PATCH] added SOCKS proxy example configuration --- configs/socks.example.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 configs/socks.example.json diff --git a/configs/socks.example.json b/configs/socks.example.json new file mode 100644 index 0000000..0e4be5f --- /dev/null +++ b/configs/socks.example.json @@ -0,0 +1,21 @@ +{ + "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" + } + ] +}