From 81d377f491a823f16f0bd39062a33868d00500d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric?= Date: Mon, 10 Feb 2025 19:34:19 +0100 Subject: [PATCH] Set bettercap "ble.recon off" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric --- pwnagotchi/plugins/default/bt-tether.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/bt-tether.py b/pwnagotchi/plugins/default/bt-tether.py index 045563ed..1f253f13 100644 --- a/pwnagotchi/plugins/default/bt-tether.py +++ b/pwnagotchi/plugins/default/bt-tether.py @@ -125,7 +125,7 @@ DNS_PTTRN = r"^\s*((\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s*[ ,;]\s*)+((\d{1,3}\.\ class BTTether(plugins.Plugin): __author__ = "Jayofelony, modified my fmatray" - __version__ = "1.3" + __version__ = "1.4" __license__ = "GPL3" __description__ = "A new BT-Tether plugin" @@ -213,6 +213,13 @@ class BTTether(plugins.Plugin): f"[BT-Tether] Failed to connect to device: have you enabled bluetooth tethering on your phone?" ) + def on_ready(self, agent): + try: + logging.info(f"[BT-Tether] Disabling bettercap's BLE module") + agent.run("ble.recon off", verbose_errors=False) + except Exception as e: + logging.info(f"[BT-Tether] Bettercap BLE was already off.") + def on_unload(self, ui): with ui._lock: ui.remove_element("bluetooth")