Created
March 11, 2015 01:38
-
-
Save vltsu/ea5c5747e29e732c35dc to your computer and use it in GitHub Desktop.
TCPdumpSample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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