mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Fix on_handshake, whole plugin should work now
Add the else: so if the ip is set in the options the plugin actually works.
This commit is contained in:
@ -23,6 +23,8 @@ class PawGPS(plugins.Plugin):
|
|||||||
def on_handshake(self, agent, filename, access_point, client_station):
|
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):
|
if 'ip' not in self.options or ('ip' in self.options and self.options['ip'] is None):
|
||||||
ip = "192.168.44.1:8080"
|
ip = "192.168.44.1:8080"
|
||||||
|
else:
|
||||||
|
ip = self.options['ip]
|
||||||
|
|
||||||
gps = requests.get('http://' + ip + '/gps.xhtml')
|
gps = requests.get('http://' + ip + '/gps.xhtml')
|
||||||
gps_filename = filename.replace('.pcap', '.gps.json')
|
gps_filename = filename.replace('.pcap', '.gps.json')
|
||||||
|
Reference in New Issue
Block a user