xende / pwnagotchi-plugin-webgpsmap Goto Github PK
View Code? Open in Web Editor NEWa plugin for pwnagotchi that shows a openstreetmap with positions of ap-handshakes in the webbrowser
a plugin for pwnagotchi that shows a openstreetmap with positions of ap-handshakes in the webbrowser
pwnagotchi-plugin-webgpsmap/webgpsmap.py
Line 154 in a29b7a4
the SSID name only is not a good key.
need to be unique (with MAC)
some alert system
its not in middle of the circle
filter/ignore not valid positions
example of bad gps data:
{"Updated": "0001-01-01T00:00:00Z", "Latitude": 0, "Longitude": 0, "FixQuality": "", "NumSatellites": 0, "HDOP": 0, "Altitude": 0, "Separation": 0}
easy search for an AP by SSID/MAC
or better - filter APs by:
Like deleting the paw-gps.json or geo.json files without having to go into /root/handshakes every time through the website somehow, if this is not possible its all fine but it would be nice for inaccurate data and for cleaning up the map
Some kind of search type bar that would allow you to filter out and only see access points with that name
some files breaks the parsing:
c8bcc8fe6353.geo.json
c8bcc8fe6353.net-pos.json
c8bcc8fe6353.pcap
File "/usr/local/pwnagotchi/plugins/webgpsmap.py", line 177, in get_html
gps_data = get_gps_data()
File "/usr/local/pwnagotchi/plugins/webgpsmap.py", line 154, in get_gps_data
ssid, mac = os.path.basename(pos_file).split('.', 2)[0].split('_', 1)
ValueError: not enough values to unpack (expected 2, got 1)
^^line numbers are not correct!
The map shows up very dark but while I'm changing the zoom level and the tiles are loading its the right brightness and then goes dark again when it's done loading. It would be nice to be able to change the brightness of the map.
[2020-01-07 08:35:18,101] [INFO] [webgpsmap] scanning /root/handshakes
[2020-01-07 08:35:18,156] [INFO] [webgpsmap] Found 11 position-data files from 38 handshakes. Fetching positions ...
[2020-01-07 08:35:18,171] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,182] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,193] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,204] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,216] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,228] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,239] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,251] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,262] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,273] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,284] [ERROR] [webgpsmap] ValueError: not enough values to unpack (expected 3, got 2)
[2020-01-07 08:35:18,295] [INFO] [webgpsmap] loaded 0 positions
Using the PAW-GPS setup to do this.
One of the files (CenturyLink164E_ec4f8283f69c.paw-gps.json):
{"Updated":"2020-01-06T23:49:24.00000000-0700","Latitude":3X.00"Longitude":-1XX.000,"NumSatellites":15,"Altitude":343.02197265625}
Removed some of the data to keep things a bit more anonymous.
Using Pwnagotchin 1.4.3
reported by EvilGremlin @ slack
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.