robin (owner)

Fork Of

Revisions

gist: 90067 Download_button fork
public
Public Clone URL: git://gist.github.com/90067.git
httpdump
1
2
3
4
5
6
7
8
9
# Monitor HTTP requests being made from your machine with a one-liner..
# Replace "en1" below with your network interface's name (usually en0 or en1)
sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*"
 
# OR.. to be able to use as "httpdump" from anywhere, drop this into ~/.bash_profile:
# (again replace "en1" with correct network interface name)
alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*""
 
# All the above tested only on OS X.