From 6200f9443d63746e788dc21454ba91c969b9ee71 Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Sun, 16 Sep 2018 20:53:02 +1000 Subject: [PATCH] proxy management scripts for macos --- proxyman.sh | 16 ++++++++++++++++ torproxy2.sh | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100755 proxyman.sh create mode 100755 torproxy2.sh diff --git a/proxyman.sh b/proxyman.sh new file mode 100755 index 0000000..1ba6f85 --- /dev/null +++ b/proxyman.sh @@ -0,0 +1,16 @@ +#! /bin/bash + +enable() { + open -a torbrowser.app + networksetup -setsocksfirewallproxy wi-fi localhost 9150 + networksetup -setsocksfirewallproxystate wi-fi on + echo "done" +} + +disable() { + osascript -e 'quit app "Tor Browser"' + networksetup -setsocksfirewallproxystate wi-fi off +} + + +$@ diff --git a/torproxy2.sh b/torproxy2.sh new file mode 100755 index 0000000..a826967 --- /dev/null +++ b/torproxy2.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +enable { + + tor + torsocks open -a "Google Chrome.app" + +} + +$@ -- 2.47.0