312-50 ยท Sniffing
Passive vs active sniffing
Active vs passive sniffing, promiscuous mode, hubs vs switches, protocols vulnerable to sniffing, Wireshark display and capture filters, tcpdump.
Key points
- Passive sniffing only listens to traffic that already reaches the capture point, which works on hubs or a mirrored (SPAN) port.
- Active sniffing injects traffic, such as forged ARP or flooded MAC entries, to make a switch deliver other hosts' frames.
- Capturing everything the NIC sees needs promiscuous mode.
Source: https://www.tcpdump.org/manpages/tcpdump.1.html
Practice questions
Which NIC mode lets a sniffer accept frames that are not addressed to its own MAC address?
- Promiscuous mode
- Half-duplex mode
- Loopback mode
- Jumbo-frame mode
Show answer
Answer: A. Promiscuous mode
Promiscuous mode makes the NIC pass every received frame to the OS instead of dropping those for other MACs. The other modes concern duplex, local testing, or frame size.
Which of these protocols send credentials in cleartext and are therefore exposed to sniffing?
- Telnet
- FTP
- SSH
- HTTP (without TLS)
- SFTP
Show answer
Answer: A. Telnet, B. FTP, D. HTTP (without TLS)
Telnet, plain FTP and plain HTTP transmit usernames and passwords unencrypted. SSH and SFTP (which runs over SSH) encrypt the session.
True or false: a Wireshark display filter is applied before packets are captured, so it reduces the size of the capture file.
Show answer
Answer: False
False. Capture filters are set before the capture starts and limit what is saved. Display filters only hide packets in the list and can be changed at any time.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
