Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import socket
- rawSocket = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(0x0003))
- rawSocket.bind(("mon0", 0x0003))
- ap_list = set()
- while True :
- pkt = rawSocket.recvfrom(2048)[0]
- if pkt[26] == "\x80" :
- if pkt[36:42] not in ap_list and ord(pkt[63]) > 0:
- ap_list.add(pkt[36:42])
- print "SSID: %s AP MAC: %s" % (pkt[64:64 +ord(pkt[63])], pkt[36:42].encode('hex'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement