Forked from securitytube/ssid-sniffer-scapy-python.py
Created
November 23, 2016 18:34
-
-
Save Deathnerd/6dd84fe8b89c6d5d61ee8aae4d7b52d9 to your computer and use it in GitHub Desktop.
WLAN SSID Sniffer in Python using Scapy
This file contains 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 python | |
from scapy.all import * | |
ap_list = [] | |
def PacketHandler(pkt) : | |
if pkt.haslayer(Dot11) : | |
if pkt.type == 0 and pkt.subtype == 8 : | |
if pkt.addr2 not in ap_list : | |
ap_list.append(pkt.addr2) | |
print "AP MAC: %s with SSID: %s " %(pkt.addr2, pkt.info) | |
sniff(iface="mon0", prn = PacketHandler) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment