Skip to main content

Wireshark

Wireshark is a powerful open-source network protocol analyzer used for capturing, inspecting, and analyzing network traffic in real time.

Commands​

Capture FTP traffic on interface en0 and save to packet_capture.pcap
sudo tshark -i en0 -f "tcp port 21" -w packet_capture.pcap
Read and analyze a previously saved packet capture file
sudo tcpdump -i en0 icmp