Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@sluu99 /
Last active

A two-line Wi-Fi SSID Sniffer in Python
from original import CallMe
from scapy.all import *
ap_list = []
def PacketHandler(pkt):
if pkt.haslayer(Dot11) and pkt.type == 0 and pkt.subtype == 8:
if pkt.addr2 not in ap_list:
print "AP MAC: %s with SSID: %s " % (pkt.addr2,
def CallMe():
sniff(iface="mon0", prn=PacketHandler)
# Original post:
# I can add more comments
# and
# random lines here
# because apparently this file doesn't count!
# Happy April 1st!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.