From bad8d458ccd04938ebe1240e114d89cf00504f11 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Wed, 18 Dec 2024 14:42:44 +0100 Subject: [PATCH] Remove multiple checks for blind epochs. Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/automata.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pwnagotchi/automata.py b/pwnagotchi/automata.py index 23f0162a..cd4f61b9 100644 --- a/pwnagotchi/automata.py +++ b/pwnagotchi/automata.py @@ -137,13 +137,7 @@ class Automata(object): self.set_grateful() plugins.on('epoch', self, self._epoch.epoch - 1, self._epoch.data()) - if self._epoch.blind_for % 10 == 2: - 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']: + if self._epoch.blind_for >= self._config['main']['mon_max_blind_epochs']: logging.critical("%d epochs without visible access points -> restarting ...", self._epoch.blind_for) self._restart() self._epoch.blind_for = 0