Skip to content

Instantly share code, notes, and snippets.

@luszczynski
Created August 9, 2019 13:47
Show Gist options
  • Save luszczynski/6e8d914d7337ec6f627ce4059b6e93d8 to your computer and use it in GitHub Desktop.
Save luszczynski/6e8d914d7337ec6f627ce4059b6e93d8 to your computer and use it in GitHub Desktop.
TCP Dump Examples

TCP Dump Example

Check TCP Packet Content on Port 80

tcpdump -i eth0 -nn -s 1800 -XXX port 80

Check TCP Syn Packet on Port 80

tcpdump -i eth0 -nn 'tcp[tcpflags] & (tcp-syn) != 0' and port 80 > conexoes.txt

Find HTTP User Agents

tcpdump -i eth0 -vvAls0 | grep 'User-Agent:'

Save network dump and analyse it

tcpdump -i eth0 -nn -s 1800 -XXX -w dump.pcap port 80
strings dump.pcap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment