Skip to content

Instantly share code, notes, and snippets.

@royclarkson
Created May 8, 2014 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save royclarkson/c04975ccb01b96c68f5b to your computer and use it in GitHub Desktop.
Save royclarkson/c04975ccb01b96c68f5b to your computer and use it in GitHub Desktop.
Bash shell command to monitor traffic on localhost port 8080
sudo tcpdump -s 0 -A -i lo0 'tcp port 8080 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment