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:
parent
8965ad9272
commit
6e1490da78
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user