Created
February 17, 2015 20:27
-
-
Save meeuw/935a4b961bc2fac1fef5 to your computer and use it in GitHub Desktop.
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 | |
import radiotap as r, pcap | |
pc = pcap.pcap(name='/tmp/monitor.pcap') | |
while 1: | |
tstamp, pkt = pc.next() | |
off, radiotap = r.radiotap_parse(pkt) | |
off, pkt = r.ieee80211_parse(pkt, off) | |
if 'type' in pkt and pkt['type'] == 0 and 'subtype' in pkt and pkt['subtype'] == 4: | |
if pkt['data'][0] != '\x01': | |
print radiotap | |
print `pkt['data'].split('\x01')[0]` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment