From 57f03f435997ca01bffe4017680b739b177fda1d Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Mon, 22 Jan 2024 23:56:13 +0100 Subject: [PATCH] Removed paw-gps.py, as it is no longer supported. --- pwnagotchi/defaults.toml | 3 --- pwnagotchi/plugins/default/paw-gps.py | 39 --------------------------- 2 files changed, 42 deletions(-) delete mode 100644 pwnagotchi/plugins/default/paw-gps.py diff --git a/pwnagotchi/defaults.toml b/pwnagotchi/defaults.toml index 61b27abf..b7311189 100644 --- a/pwnagotchi/defaults.toml +++ b/pwnagotchi/defaults.toml @@ -77,9 +77,6 @@ main.plugins.onlinehashcrack.email = "" main.plugins.onlinehashcrack.dashboard = "" main.plugins.onlinehashcrack.single_files = false -main.plugins.paw-gps.enabled = false -main.plugins.paw-gps.ip = "192.168.44.1:8080" - main.plugins.pisugar2.enabled = false main.plugins.pisugar2.shutdown = 5 main.plugins.pisugar2.sync_rtc_on_boot = false diff --git a/pwnagotchi/plugins/default/paw-gps.py b/pwnagotchi/plugins/default/paw-gps.py deleted file mode 100644 index c4837b1c..00000000 --- a/pwnagotchi/plugins/default/paw-gps.py +++ /dev/null @@ -1,39 +0,0 @@ -import logging -import requests -import pwnagotchi.plugins as plugins - -''' -You need an bluetooth connection to your android phone which is running PAW server with the GPS "hack" from Systemik and edited by shaynemk -GUIDE HERE: https://community.pwnagotchi.ai/t/setting-up-paw-gps-on-android -''' - - -class PawGPS(plugins.Plugin): - __author__ = 'leont' - __version__ = '1.0.1' - __name__ = 'pawgps' - __license__ = 'GPL3' - __description__ = 'Saves GPS coordinates whenever an handshake is captured. The GPS data is get from PAW on android.' - - def on_loaded(self): - logging.info("[paw-gps] plugin loaded") - if 'ip' not in self.options or ('ip' in self.options and self.options['ip'] is None) or (len('ip' in self.options and self.options['ip']) is 0): - logging.info("[paw-gps] no IP Address defined in the config file, will uses paw server default (192.168.44.1:8080)") - - def on_handshake(self, agent, filename, access_point, client_station): - if 'ip' not in self.options or ('ip' in self.options and self.options['ip'] is None or (len('ip' in self.options and self.options['ip']) is 0)): - ip = "192.168.44.1:8080" - else: - ip = self.options['ip'] - - try: - gps = requests.get('http://' + ip + '/gps.xhtml') - try: - gps_filename = filename.replace('.pcap', '.paw-gps.json') - logging.info("[paw-gps] saving GPS data to %s" % (gps_filename)) - with open(gps_filename, 'w+t') as f: - f.write(gps.text) - except Exception as error: - logging.error(f"[paw-gps] encountered error while saving gps data: {error}") - except Exception as error: - logging.error(f"[paw-gps] encountered error while getting gps data: {error}")