Skip to content

Commit

Permalink
Small edit to net-pos.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jayofelony committed Jan 22, 2024
1 parent 9a9ee70 commit 4fe603b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pwnagotchi/plugins/default/net-pos.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def __init__(self):
self.skip = list()
self.ready = False
self.lock = threading.Lock()
self.options = dict()

def on_loaded(self):
if 'api_key' not in self.options or ('api_key' in self.options and not self.options['api_key']):
Expand Down Expand Up @@ -116,6 +117,7 @@ def on_handshake(self, agent, filename, access_point, client_station):
except OSError as os_e:
logging.error("NET-POS: %s", os_e)


def _get_netpos(self, agent):
aps = agent.get_access_points()
netpos = dict()
Expand Down

0 comments on commit 4fe603b

Please sign in to comment.