Skip to content

Instantly share code, notes, and snippets.

@vltsu
Created March 11, 2015 01:38
Show Gist options
  • Save vltsu/ea5c5747e29e732c35dc to your computer and use it in GitHub Desktop.
Save vltsu/ea5c5747e29e732c35dc to your computer and use it in GitHub Desktop.
TCPdumpSample
sudo tcpdump -i lo0 -A -s 0 'tcp port 8081 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' // show http request and headers for localhost on port 8081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment