Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save boywijnmaalen/700c288b176501fc4d80 to your computer and use it in GitHub Desktop.
Save boywijnmaalen/700c288b176501fc4d80 to your computer and use it in GitHub Desktop.
Output all HTTP traffic in your command line #CLI #UNIX
$ sudo tcpdump -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
$ tcpdump -i <interface> -s 0 -A host <host>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment