Created
September 12, 2022 21:18
-
-
Save D3Ext/2b813b13f4f19d795ce5cd9c27d56752 to your computer and use it in GitHub Desktop.
A simple deauth packets detector in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from scapy.all import * | |
def PacketHandler(pkt): | |
if pkt.haslayer(Dot11) and pkt.type == 0 and pkt.subtype == 0xC: | |
print("Deauth packet sniffed: %s" % (pkt.summary())) | |
sniff(iface="wlan0mon", prn = PacketHandler) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment