mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Small update version 2.1.1
This commit is contained in:
@ -230,8 +230,8 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer):
|
|||||||
if ap['mac'] == ap_mac:
|
if ap['mac'] == ap_mac:
|
||||||
for sta in ap['clients']:
|
for sta in ap['clients']:
|
||||||
if sta['mac'] == station_mac:
|
if sta['mac'] == station_mac:
|
||||||
return (ap, sta)
|
return ap, sta
|
||||||
return (ap, {'mac': station_mac, 'vendor': ''})
|
return ap, {'mac': station_mac, 'vendor': ''}
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _update_uptime(self, s):
|
def _update_uptime(self, s):
|
||||||
@ -260,7 +260,7 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer):
|
|||||||
txt = '%d (%d)' % (len(self._handshakes), tot)
|
txt = '%d (%d)' % (len(self._handshakes), tot)
|
||||||
|
|
||||||
if self._last_pwnd is not None:
|
if self._last_pwnd is not None:
|
||||||
txt += ' [%s]' % self._last_pwnd[:11]
|
txt += ' [%s]' % self._last_pwnd[:11] # So it doesn't overlap with fix_brcmfmac_plugin
|
||||||
|
|
||||||
self._view.set('shakes', txt)
|
self._view.set('shakes', txt)
|
||||||
|
|
||||||
@ -305,11 +305,9 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer):
|
|||||||
if not no_exceptions:
|
if not no_exceptions:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
def start_session_fetcher(self):
|
def start_session_fetcher(self):
|
||||||
_thread.start_new_thread(self._fetch_stats, ())
|
_thread.start_new_thread(self._fetch_stats, ())
|
||||||
|
|
||||||
|
|
||||||
def _fetch_stats(self):
|
def _fetch_stats(self):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
@ -342,7 +340,6 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer):
|
|||||||
|
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
async def _on_event(self, msg):
|
async def _on_event(self, msg):
|
||||||
found_handshake = False
|
found_handshake = False
|
||||||
jmsg = json.loads(msg)
|
jmsg = json.loads(msg)
|
||||||
|
Reference in New Issue
Block a user