This commit is contained in:
Jeffrey Paul 2018-09-11 08:33:41 -07:00
parent baa2dc836c
commit 06ceca7c58
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,9 @@
default: install
install:
cp *.plist $(HOME)/Library/LaunchAgents/
launchctl load -w $(HOME)/Library/LaunchAgents/cloud.sneak.launchagent.*.plist
uninstall:
cd $(HOME)/Library/LaunchAgents && launchctl unload cloud.sneak.launchagent.*.plist
cd $(HOME)/Library/LaunchAgents && rm cloud.sneak.launchagent.*.plist

View File

@ -0,0 +1,5 @@
# prereqs
* `brew install tor socat`
* `brew services start tor`

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>cloud.sneak.launchagent.cockli-imap-tor</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/Users/sneak/Library/Homebrew/bin/socat</string>
<string>TCP-LISTEN:22143,reuseaddr,fork</string>
<string>SOCKS4A:127.0.0.1:mail.cockmailwwfvrtqj.onion:143,socksport=9050</string>
</array>
<key>StandardErrorPath</key>
<string>/Users/sneak/Library/Homebrew/var/log/socat.cockli.imap-tor.log</string>
</dict>
</plist>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>cloud.sneak.launchagent.cockli-smtp-tor</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/Users/sneak/Library/Homebrew/bin/socat</string>
<string>TCP-LISTEN:22587,reuseaddr,fork</string>
<string>SOCKS4A:127.0.0.1:mail.cockmailwwfvrtqj.onion:587,socksport=9050</string>
</array>
<key>StandardErrorPath</key>
<string>/Users/sneak/Library/Homebrew/var/log/socat.cockli.smtp-tor.log</string>
</dict>
</plist>