Sniff 802.11
# Smart channel hopping background thread def channel_hopper(interface): channels = [1, 6, 11, 36, 40, 44, 48, 149, 153, 157, 161] while True: for ch in channels: os.system(f"iwconfig interface channel ch") time.sleep(0.5) # Dwell time
To understand 802.11 sniffing, one must first appreciate the fundamental difference between wired and wireless media. On a standard Ethernet network, a switch intelligently directs frames only to the specific port of the intended recipient. Unicast traffic intended for Host A does not normally appear on Host B’s interface. Sniffing on such a network requires active techniques like ARP spoofing or port mirroring. In contrast, 802.11 operates over radio frequencies (typically 2.4 GHz and 5 GHz, now expanding to 6 GHz with Wi-Fi 6E). Radio waves, by their physical nature, propagate in all directions. Any device with a compatible radio can receive any frame transmitted within range, provided it can synchronize with the signal. sniff 802.11
Using a sniffer to identify a target client and AP, the attacker sends forged deauthentication frames (a management frame that is normally legitimate but unencrypted). This kicks the client off the network. When the client automatically reconnects, the attacker captures the fresh four-way handshake for offline cracking. This tool ( aireplay-ng -0 ) turns passive sniffing into active capture. Sniffing on such a network requires active techniques