Skip to content

Instantly share code, notes, and snippets.

@bdss58
Last active September 19, 2018 10:18
Show Gist options
  • Save bdss58/9998fe332d6495a688df598d7948efd0 to your computer and use it in GitHub Desktop.
Save bdss58/9998fe332d6495a688df598d7948efd0 to your computer and use it in GitHub Desktop.
tcpdump output to a file and view the out file
# tcpdump the localhost port to a pcap file
tcpdump -i lo 'port 3000' -w result.pcap
# view the pcap file using tcpdump
tcpdump -qns 0 -A -r result.pcap
# tcpdump the to dest host package to a pcap file
tcpdump -i eth1 -vv -n dst host 9.78.206.6 -w result.pcap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment