int0x76

scapy: find wifi client probes

May 8th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. #!/usr/bin/env python
  2. from scapy.all import *
  3. def PacketHandler(pkt) :
  4.     if pkt.haslayer(Dot11) :
  5.         if pkt.type == 0 and pkt.subtype == 4 :
  6.             if pkt.type :
  7.                 print"Client: %s SSID: %s" % pkt.addr2, pkt.info)
  8. sniff(iface="mon0", prn = PacketHandler)
Advertisement
Add Comment
Please, Sign In to add comment