Created
August 24, 2014 04:43
-
-
Save XayOn/7034c0a28dccb02bd595 to your computer and use it in GitHub Desktop.
PyList
This file contains hidden or 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/python | |
import sys | |
import time | |
import os | |
import optparse | |
import pdb | |
import Tool80211 | |
airmonitor = Tool80211.Airview(sys.argv[1]) | |
airmonitor.start() | |
ppmac = airmonitor.pformatMac | |
while True: | |
time.sleep(3) | |
current_coordinates = raw_input("Introduzca coordenadas actuales: ") | |
bss = airmonitor.apObjects | |
airmonitor.hopper.pause() | |
airmonitor.hopper.setchannel(int(sys.argv[2])) | |
for bssid in bss.keys(): | |
ap = bss[bssid] | |
apbssid = ppmac(bssid) | |
rssi = ap.rssi | |
print ("%s,%s,%s,%s" %(time.time(), apbssid, rssi, current_coordinates)).encode("utf-8") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment