Tor for chrome in ubuntu

忙中偷閒寫個script. Tor for chrome in ubuntu
設好 TORPATH 基本上可馬上用

#!/bin/bash # >> ------------------------------- # tor for Chrome version 1.0 # By: SiuTin # Date: 26,April 2012 # Website: osiutino.wordpress.com # ------------------------------- << # set tor path TORPATH=~/tor-browser_en-US echo "=> TOR FOR CHROME" # set port.js path PREFSJS=$TORPATH/Data/profile/prefs.js # get dynamic port number PORT=$(cat $PREFSJS | grep network.proxy.socks_port | egrep -e '([0-9])+' -o) # combine address and port ADDR=127.0.0.1:$PORT echo "=> TOR ADDESS = $ADDR" echo "=> starting chrome ...." # run chrome /usr/bin/google-chrome --proxy-server="socks://$ADDR;socks4://$ADDR;socks5://$ADDR;" check.torproject.org
Advertisements