Tcpdump Tutorial
Tcpdump Tutorial
Everything on an interface
Just see what’s going on, by looking at what’s hitting your interface.
tcpdump -i eth0
Find Traffic by IP
One of the most common queries, using host, you can see traffic that’s going to or from
172.16.222.45.
Expression Types:
Directions:
Protocols:
Related
An ICS/SCADA Primer
tcpdump -c 1 -X icmp
tcpdump is the tool everyone should learn as their base for packet analysis.
https://packetsender.com/download#show
tcpdump port 80
Use packet Sender installed at windows (anydesk or remote desktop )to generate http traffic as
shown below
Press send bottom many times to generate http traffic toward kali Linux VM
Common Options:
Use packet Sender installed at windows (anydesk or remote desktop )to generate http traffic as
shown below
Press send bottom many time to generate http traffic toward kali Linux VM
tcpdump ip6
Press send bottom many time to generate http traffic toward kali Linux VM
You can read PCAP files by using the -r switch. Note that you can use all the regular commands
within tcpdump while reading in a file; you’re only limited by the fact that you can’t capture and
process what doesn’t exist in the file already.
tcpdump -r capture_file
Advanced
Now that we’ve seen what we can do with the basics through some examples, let’s look at some
more advanced stuff.
More options
Here are some additional ways to tweak how you call tcpdump.