Bitzu

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

Single choice

Which NIC mode lets a sniffer accept frames that are not addressed to its own MAC address?

  1. Promiscuous mode
  2. Half-duplex mode
  3. Loopback mode
  4. 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.

Select all that apply

Which of these protocols send credentials in cleartext and are therefore exposed to sniffing?

  1. Telnet
  2. FTP
  3. SSH
  4. HTTP (without TLS)
  5. 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

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.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module