From dd44cda998d36c167dbe738f91ae8995d2315d54 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 21 Dec 2025 16:08:20 +0000 Subject: [PATCH] Remove Ubertooth and Bettercap options from Bluetooth MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simplified Bluetooth scanning to just: - bluetoothctl (Recommended) - hcitool (Legacy) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- intercept.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/intercept.py b/intercept.py index cbb2168..9290f4b 100755 --- a/intercept.py +++ b/intercept.py @@ -1725,8 +1725,6 @@ HTML_TEMPLATE = '''
hcitool:Checking... bluetoothctl:Checking... - ubertooth:Checking... - bettercap:Checking...
@@ -1735,8 +1733,6 @@ HTML_TEMPLATE = '''
- -
@@ -3793,8 +3789,6 @@ HTML_TEMPLATE = ''' statusDiv.innerHTML = ` hcitool:${data.tools.hcitool ? 'OK' : 'Missing'} bluetoothctl:${data.tools.bluetoothctl ? 'OK' : 'Missing'} - ubertooth:${data.tools.ubertooth ? 'OK' : 'Missing'} - bettercap:${data.tools.bettercap ? 'OK' : 'Missing'} `; }); } @@ -5623,18 +5617,6 @@ def detect_bt_interfaces(): 'status': 'available' }) - # Check for Ubertooth - try: - result = subprocess.run(['ubertooth-util', '-v'], capture_output=True, timeout=5) - if result.returncode == 0: - interfaces.append({ - 'name': 'ubertooth0', - 'type': 'ubertooth', - 'status': 'connected' - }) - except: - pass - return interfaces @@ -5656,8 +5638,6 @@ def get_bt_interfaces(): tools = { 'hcitool': check_tool('hcitool'), 'bluetoothctl': check_tool('bluetoothctl'), - 'ubertooth': check_tool('ubertooth-scan'), - 'bettercap': check_tool('bettercap'), 'hciconfig': check_tool('hciconfig'), 'l2ping': check_tool('l2ping'), 'sdptool': check_tool('sdptool') @@ -5915,22 +5895,6 @@ def start_bt_scan(): time.sleep(0.3) os.write(master_fd, b'scan on\n') - elif scan_mode == 'ubertooth': - cmd = ['ubertooth-scan', '-t', str(duration)] - bt_process = subprocess.Popen( - cmd, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE - ) - - elif scan_mode == 'bettercap': - cmd = ['bettercap', '-eval', 'ble.recon on', '-silent'] - bt_process = subprocess.Popen( - cmd, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE - ) - else: return jsonify({'status': 'error', 'message': f'Unknown scan mode: {scan_mode}'})