Small change not worth mentioning

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2024-12-17 18:57:20 +01:00
parent d543144d27
commit 9c0891b9c6

View File

@ -140,10 +140,10 @@ class Automata(object):
if self._epoch.blind_for % 10 == 2: if self._epoch.blind_for % 10 == 2:
logging.info("two blind epochs -> restarting wifi.recon...", self._epoch.blind_for) logging.info("two blind epochs -> restarting wifi.recon...", self._epoch.blind_for)
self.run('wifi.recon on') self.run('wifi.recon on')
if self._epoch.blind_for and self._epoch.blind_for % 5 == 0: 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) logging.info("%d epochs without visible access points -> restarting bettercap...", self._epoch.blind_for)
os.system("systemctl restart bettercap") os.system("systemctl restart bettercap")
if self._epoch.blind_for >= self._config['main']['mon_max_blind_epochs']: 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