tcpdump
A cheat sheet for tcpdump.
Getting started
Help
-i - interface (specific network interface) -v - verbose (specifies that you want to display detailed processing information on your screen)
Capturing data from hosts
wlp20 - is your network interface. tcpdump -i wlp2s0 - Capture from specific interface ( Ex: wlp2s0)
Playing around with filters:
Capture the network packets sent to source machine
src -> source
Capture the network packets sent from destination machine
dst -> destination
Captures the network from all device in this network
net -> subnet / entire network
Protocol specific data capture:
and, or -> combines the filters