From: Andrew Lorimer Date: Sun, 16 Sep 2018 10:53:02 +0000 (+1000) Subject: proxy management scripts for macos X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/6200f9443d63746e788dc21454ba91c969b9ee71?ds=sidebyside;hp=-c proxy management scripts for macos --- 6200f9443d63746e788dc21454ba91c969b9ee71 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" + +} + +$@