Table of Contents

Click Here to Return To the Certified Ethical Hacker (CEH v13) Course Page

Sniffing captures and analyzes network traffic in the EC-Council CEH v13 course. This module covers passive and active sniffing, switch-based attacks, and the tools that read packets off the wire. Capture traffic only on networks you are authorized to test.

A sniffer reads packets as they cross the network. On unencrypted protocols this exposes credentials, session tokens, and sensitive data in plaintext.

Passive vs. Active Sniffing

The network design decides which approach works.

TypeWhere it worksMethod
PassiveHubs, mirrored portsListens without altering traffic
ActiveSwitched networksForces traffic to your host

Switches send traffic only to the right port, so an attacker uses active techniques to redirect it.

Active Sniffing Attacks

You manipulate Layer 2 to intercept traffic.

  • ARP poisoning sends forged ARP replies so victims send traffic through you. This is a man-in-the-middle position.
  • MAC flooding overloads the switch CAM table so it fails open and broadcasts like a hub.
  • DHCP starvation exhausts the DHCP pool, then a rogue server hands out malicious settings.
# Capture traffic on an interface and filter for HTTP
sudo tcpdump -i eth0 -A 'tcp port 80'

Analysis Tools

ToolUse
WiresharkDeep graphical packet analysis
tcpdumpCommand-line capture and filtering
EttercapMan-in-the-middle and ARP poisoning
dsniffExtracts credentials from traffic

You apply display filters in Wireshark like http.request or tcp.port == 443 to focus on relevant packets.

Countermeasures

You defend against sniffing with encryption and switch hardening.

  • Encrypt traffic with TLS, SSH, and VPNs so captured data stays unreadable.
  • Dynamic ARP Inspection (DAI) blocks forged ARP replies.
  • Port security limits MAC addresses per port to stop flooding.

Encryption is the strongest defense, because a sniffer that captures ciphertext gains nothing.

Next Steps

Move from technical capture to human attacks in Social Engineering . Revisit malicious code in Malware Threats . Return to the Certified Ethical Hacker (CEH v13) Course .