From 8965ad9272f5bba217534ef15bcbf7305d9d189b Mon Sep 17 00:00:00 2001 From: Arttumiro Date: Thu, 14 Nov 2019 11:45:39 +0200 Subject: [PATCH 1/3] change default ip of paw-gps, it needs port too. Change default ip from 192.168.44.1 (which is the ip address of an android on bt tether) to 192.168.44.1:8080 so it has the default port paw-gps opens on, which is 8080. --- pwnagotchi/plugins/default/paw-gps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/paw-gps.py b/pwnagotchi/plugins/default/paw-gps.py index a681033..5422c14 100644 --- a/pwnagotchi/plugins/default/paw-gps.py +++ b/pwnagotchi/plugins/default/paw-gps.py @@ -22,7 +22,7 @@ class PawGPS(plugins.Plugin): 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): - ip = "192.168.44.1" + ip = "192.168.44.1:8080" gps = requests.get('http://' + ip + '/gps.xhtml') gps_filename = filename.replace('.pcap', '.gps.json') From 6e1490da78e132d3142a56ec56488545755a7500 Mon Sep 17 00:00:00 2001 From: Arttumiro Date: Thu, 14 Nov 2019 22:29:43 +0200 Subject: [PATCH 2/3] Fix on_handshake, whole plugin should work now Add the else: so if the ip is set in the options the plugin actually works. --- pwnagotchi/plugins/default/paw-gps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwnagotchi/plugins/default/paw-gps.py b/pwnagotchi/plugins/default/paw-gps.py index 5422c14..6d6beec 100644 --- a/pwnagotchi/plugins/default/paw-gps.py +++ b/pwnagotchi/plugins/default/paw-gps.py @@ -23,6 +23,8 @@ class PawGPS(plugins.Plugin): 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): ip = "192.168.44.1:8080" + else: + ip = self.options['ip] gps = requests.get('http://' + ip + '/gps.xhtml') gps_filename = filename.replace('.pcap', '.gps.json') From 56cc872daa4b8e69905e0ae1af499e8077f4e70e Mon Sep 17 00:00:00 2001 From: Arttumiro Date: Thu, 14 Nov 2019 22:29:58 +0200 Subject: [PATCH 3/3] Update paw-gps.py --- pwnagotchi/plugins/default/paw-gps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/paw-gps.py b/pwnagotchi/plugins/default/paw-gps.py index 6d6beec..0d98324 100644 --- a/pwnagotchi/plugins/default/paw-gps.py +++ b/pwnagotchi/plugins/default/paw-gps.py @@ -24,7 +24,7 @@ class PawGPS(plugins.Plugin): if 'ip' not in self.options or ('ip' in self.options and self.options['ip'] is None): ip = "192.168.44.1:8080" else: - ip = self.options['ip] + ip = self.options['ip'] gps = requests.get('http://' + ip + '/gps.xhtml') gps_filename = filename.replace('.pcap', '.gps.json')