Skip to content

Instantly share code, notes, and snippets.

@leveled
Last active December 15, 2020 15:24
Show Gist options
  • Save leveled/39a9b19ce2d83852875fcc7a588d3025 to your computer and use it in GitHub Desktop.
Save leveled/39a9b19ce2d83852875fcc7a588d3025 to your computer and use it in GitHub Desktop.
tcpdump cheatsheet
##Basic Structure is
#[timestamp] [network protocol] [source IP].[source port] > [dest IP].[dest port]
tcpdump -n -r icmp.pcap 'icmp[icmptype] = icmp-echoreply' and dst host 192.168.2.127
# Number of packets
tcpdump -nn -r capture.pcap | wc - l
# Capture incoming DNS Traffic
tcpdump -l -n -i pub dst port 53 and inbound
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment