Skip to content

Instantly share code, notes, and snippets.

@averagesecurityguy
Created April 9, 2014 13:34
Show Gist options
  • Save averagesecurityguy/10271148 to your computer and use it in GitHub Desktop.
Save averagesecurityguy/10271148 to your computer and use it in GitHub Desktop.
Chrome with Custom Proxy
# In your .bashrc file you need to export the BURP_SERVER and BURP_PORT environment
# variables. You can change the server and port by exporting new values before
# running the shell script.
export BURP_SERVER='127.0.0.1'
export BURP_PORT='8080'
#!/bin/sh
server=${BURP_SERVER}
port=${BURP_PORT}
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server=$server:$port &
# The Mac OS X terminal app does not source a user's .bashrc file on startup.
# To make that happen edit /etc/profile to add the following lines. I found this
# trick at http://linuxtomacbook.com/?p=22
if [ -r $HOME/.bashrc ]; then
source $HOME/.bashrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment