diff --git a/bin/pwnagotchi b/bin/pwnagotchi index e9e36254..dc6015ad 100755 --- a/bin/pwnagotchi +++ b/bin/pwnagotchi @@ -60,7 +60,7 @@ def pwnagotchi_cli(): channels = agent.get_access_points_by_channel() # for each channel for ch, aps in channels: - time.sleep(0.2) + time.sleep(0.5) agent.set_channel(ch) if not agent.is_stale() and agent.any_activity(): diff --git a/pwnagotchi/plugins/default/fix_services.py b/pwnagotchi/plugins/default/fix_services.py index 6f23df26..ea69ad80 100644 --- a/pwnagotchi/plugins/default/fix_services.py +++ b/pwnagotchi/plugins/default/fix_services.py @@ -29,7 +29,6 @@ class FixServices(plugins.Plugin): def __init__(self): self.options = dict() - self.pattern = re.compile(r'brcmf_cfg80211_nexmon_set_channel.*?Set Channel failed') self.pattern2 = re.compile(r'wifi error while hopping to channel') self.pattern3 = re.compile(r'Firmware has halted or crashed') self.pattern4 = re.compile(r'error 400: could not find interface wlan0mon') @@ -55,20 +54,6 @@ class FixServices(plugins.Plugin): if ",UP," in str(cmd_output): logging.debug("wlan0mon is up.") - if len(self.pattern.findall(last_lines)) >= 3: - if hasattr(agent, 'view'): - display = agent.view() - display.set('status', 'Blind-Bug detected. Restarting.') - display.update(force=True) - logging.debug('[Fix_Services] Blind-Bug detected. Restarting.') - try: - self._tryTurningItOffAndOnAgain(agent) - except Exception as err: - logging.warning("[Fix_Services turnOffAndOn] %s" % repr(err)) - - else: - logging.debug("[Fix_Services] Logs look good!") - except Exception as err: logging.error("[Fix_Services ip link show wlan0mon]: %s" % repr(err)) try: @@ -116,20 +101,8 @@ class FixServices(plugins.Plugin): logging.debug("[Fix_Services]**** checking") - # Look for pattern 1 - if len(self.pattern.findall(last_lines)) >= 3: - logging.debug("[Fix_Services]**** Should trigger a reload of the wlan0mon device:\n%s" % last_lines) - if hasattr(agent, 'view'): - display.set('status', 'Blind-Bug detected. Restarting.') - display.update(force=True) - logging.debug('[Fix_Services] Blind-Bug detected. Restarting.') - try: - self._tryTurningItOffAndOnAgain(agent) - except Exception as err: - logging.warning("[Fix_Services] TTOAOA: %s" % repr(err)) - # Look for pattern 2 - elif len(self.pattern2.findall(other_last_lines)) >= 5: + if len(self.pattern2.findall(other_last_lines)) >= 5: logging.debug("[Fix_Services]**** Should trigger a reload of the wlan0mon device:\n%s" % last_lines) if hasattr(agent, 'view'): display.set('status', 'Wifi channel stuck. Restarting recon.')