Skip to content

Instantly share code, notes, and snippets.

@tom--
Last active September 28, 2019 21:14
Show Gist options
  • Save tom--/2ce6b07666825fb45f4c7c2a2ec4da68 to your computer and use it in GitHub Desktop.
Save tom--/2ce6b07666825fb45f4c7c2a2ec4da68 to your computer and use it in GitHub Desktop.

Hexdump traffic over interface I to and from TCP server on port P of host H

tcpdump -p -i I -lttttX 'tcp and ((dst port P and dst host H) or (src port P and src host H))'

in which

  • I is interface name
  • P is port number
  • H is host name or address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment