mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-04-27 11:09:09 -04:00
20 lines
426 B
Python
20 lines
426 B
Python
#!/usr/bin/env python
|
|
|
|
__author__ = "Mia Stein"
|
|
|
|
from scapy.all import *
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
ap_list = []
|
|
sniff(iface="wlp1s0", prn = PacketHandler)
|