Skip to content

Instantly share code, notes, and snippets.

@D3Ext
Created September 12, 2022 21:18
Show Gist options
  • Save D3Ext/2b813b13f4f19d795ce5cd9c27d56752 to your computer and use it in GitHub Desktop.
Save D3Ext/2b813b13f4f19d795ce5cd9c27d56752 to your computer and use it in GitHub Desktop.
A simple deauth packets detector in python
#!/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