mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Remove multiple checks for blind epochs.
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -137,13 +137,7 @@ class Automata(object):
|
|||||||
self.set_grateful()
|
self.set_grateful()
|
||||||
|
|
||||||
plugins.on('epoch', self, self._epoch.epoch - 1, self._epoch.data())
|
plugins.on('epoch', self, self._epoch.epoch - 1, self._epoch.data())
|
||||||
if self._epoch.blind_for % 10 == 2:
|
if self._epoch.blind_for >= self._config['main']['mon_max_blind_epochs']:
|
||||||
logging.info("two blind epochs -> restarting wifi.recon...", self._epoch.blind_for)
|
|
||||||
self.run('wifi.recon on')
|
|
||||||
elif self._epoch.blind_for and self._epoch.blind_for % 5 == 0:
|
|
||||||
logging.info("%d epochs without visible access points -> restarting bettercap...", self._epoch.blind_for)
|
|
||||||
os.system("systemctl restart bettercap")
|
|
||||||
elif self._epoch.blind_for >= self._config['main']['mon_max_blind_epochs']:
|
|
||||||
logging.critical("%d epochs without visible access points -> restarting ...", self._epoch.blind_for)
|
logging.critical("%d epochs without visible access points -> restarting ...", self._epoch.blind_for)
|
||||||
self._restart()
|
self._restart()
|
||||||
self._epoch.blind_for = 0
|
self._epoch.blind_for = 0
|
||||||
|
Reference in New Issue
Block a user