pentesting, updated
Network traffic sniffing
Capture and analyze traffic on a segment to recover credentials or sensitive data sent in cleartext.
Goal
Identify cleartext protocols and credentials crossing the network, either from a position gained via ARP spoofing or on a segment with a hub/mirrored port.
How to test
tcpdump -i eth0 -w capture.pcap # capture to disk for later analysis
tshark -i eth0 -Y "ftp.request.command == \"PASS\"" # live filter for FTP passwords
wireshark capture.pcap # Follow > TCP Stream on any suspect session
net-creds.py -i eth0 # auto-extracts creds from live traffic
What to look for
Any HTTP Basic Auth header, FTP/Telnet credentials, or SNMP community string visible in plaintext in the capture.
Notes
Combine with ARP spoofing to get traffic that would not otherwise reach your interface, on a switched network.