Skip to content

Instantly share code, notes, and snippets.

@Fuzion24
Last active September 26, 2018 21:42
Show Gist options
  • Save Fuzion24/be5ad699d7ca0c0fcf25 to your computer and use it in GitHub Desktop.
Save Fuzion24/be5ad699d7ca0c0fcf25 to your computer and use it in GitHub Desktop.
#! /bin/sh
#Opens Chrome canary (or Chromium or w/e CHROME_PATH points to) in igcognito mode.
#Uses very popular user agent
#Sets Tor as the socks proxy
CHROME_PATH="/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"
tor &> /dev/null & \
"${CHROME_PATH}" --user-agent="Mozilla/5.0 ;Windows NT 6.1; WOW64; AppleWebKit/537.36 ;KHTML, like Gecko; Chrome/39.0.2171.95 Safari/537.36" \
--proxy-server="socks://localhost:9050" \
-incognito &> /dev/null &
#You can convince yourself of the headers Chrome is sending by using nc to listen to a Chrome request:
# Make sure you have this netcat port forwarded, if you are behind a router
# nc -l 6789
# In Chrome, browse to http://<public_ip>:6789
# in nc, you'll see :
#```
#GET / HTTP/1.1
#Host: 68.107.123.96:6789
#Connection: keep-alive
#Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
#User-Agent: Mozilla/5.0 ;Windows NT 6.1; WOW64; AppleWebKit/537.36 ;KHTML, like Gecko; Chrome/39.0.2171.95 Safari/537.36
#DNT: 1
#Accept-Encoding: gzip, deflate, sdch
#Accept-Language: en-US,en;q=0.8
#```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment