From 6e1490da78e132d3142a56ec56488545755a7500 Mon Sep 17 00:00:00 2001 From: Arttumiro Date: Thu, 14 Nov 2019 22:29:43 +0200 Subject: [PATCH] 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 5422c1419..6d6beec14 100644 --- a/pwnagotchi/plugins/default/paw-gps.py +++ b/pwnagotchi/plugins/default/paw-gps.py @@ -23,6 +23,8 @@ def on_loaded(self): 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')