Skip to content

Bluetooth Low Energy

This module handles Bluetooth Low Energy (BLE) devices. It provides device discovery, services enumeration, and characteristic writing for unauthenticated devices.

Start BLE device discovery.

Stop BLE device discovery.

Clear all devices collected by the BLE discovery module.

Show discovered BLE devices.

Enumerate services and characteristics for the given BLE device.

Write the HEX_DATA buffer to the BLE device with the specified MAC. Writes to the characteristic with the given UUID.

ParameterDefaultDescription
ble.device-1Index of the HCI device to use, -1 to autodetect.
ble.show.filterDefines a regular expression filter for ble.show.
ble.show.limit0If greater than zero, defines limit for ble.show.
ble.show.sortrssi ascDefines sorting field (rssi, mac, or seen) and direction (asc or desc) for ble.show.
ble.timeout5Connection timeout in seconds.
ble.ttl30Seconds of inactivity for a device to be pruned.

Connect, enumerate and read characteristics from the BLE device 04:52:de:ad:be:ef (requires ble.recon on first):

Terminal window
ble.enum 04:52:de:ad:be:ef

Write bytes to the device 04:52:de:ad:be:ef on characteristic 234bfbd5e3b34536a3fe723620d4b78d. Requires ble.recon on first:

Terminal window
ble.write 04:52:de:ad:be:ef 234bfbd5e3b34536a3fe723620d4b78d ffffffffffffffff

Hacking a Loccess smartlock using bettercap:

Play