Bluetooth & SDR wireless

Field Detail
Summary Bluetooth/BLE and software-defined-radio testing
Category RF / wireless testing
Phase recon, exploitation
Interface CLI + GUI
Platform Linux
Licence Open source
Docs https://www.rtl-sdr.com/ / https://github.com/virtualabs/btlejack
Related Aircrack-ng, Wireshark and tcpdump, OT-ICS protocol interaction

Beyond Wi-Fi: Bluetooth/BLE testing, and Software-Defined Radio (SDR) for everything else on the spectrum — IoT sensors, key fobs, industrial telemetry, sub-GHz devices. Hardware-dependent: a BLE adapter / Ubertooth for Bluetooth, an RTL-SDR (receive) or HackRF/bladeRF (transmit) for SDR.

⛔ Danger — Transmitting is legally restricted Receiving is generally fine; transmitting on most bands requires a licence and can be illegal (UK: Wireless Telegraphy Act — jamming/interference is an offence). Replngaying/transmitting against devices you don't own, or anything safety-related, is out of scope. Keep TX to your own equipment in a controlled setting, ideally a shielded/faraday setup.

Bluetooth / BLE

# Classic Bluetooth discovery
hciconfig ; hciconfig hci0 up
hcitool scan                         # discover classic BT devices
sdptool browse <MAC>                 # services

# BLE (Bluetooth Low Energy) — most modern IoT
sudo bluetoothctl                    # scan on; devices; connect <MAC>
sudo hcitool lescan                  # scan for BLE advertisements
gatttool -b <MAC> -I                 # interactive GATT: primary, char-read-hnd, char-write-req
bettercap -eval "ble.recon on"       # bettercap's BLE module: enumerate + read/write GATT

btlejack (needs a Micro:Bit or compatible) — sniff/hijack BLE connections:

btlejack -s                          # scan for active connections
btlejack -f 0x<access-addr> -t       # follow/capture a connection
btlejack -c <access-addr>            # (lab/own-device) connection work

What to look for: unauthenticated GATT read/write (control a device), no pairing/"Just Works" pairing, static passkeys, sensitive data in advertisements, replayable commands.

SDR — receive & analyse

# Confirm the dongle
rtl_test -t                          # RTL-SDR present? tuner range?

# Visual spectrum / listen (GUI)
gqrx                                 # waterfall + demod (AM/FM/SSB) — find & identify signals

# Decode common 433/868 MHz IoT & sensors (weather stations, TPMS, some industrial telemetry)
rtl_433 -F json                      # auto-decodes hundreds of device protocols
rtl_433 -f 868M                      # tune to 868 MHz band

# Record raw IQ for offline analysis
rtl_sdr -f 433920000 -s 2048000 capture.iq

Universal Radio Hacker (URH) — the swiss-army knife for unknown signals:

urh                                  # GUI: record, demodulate, auto-detect bit encoding,
                                     #      analyse protocol, (with TX hw) craft/replay

Workflow: capture → find the signal in the waterfall → demodulate (ASK/OOK/FSK) → recover the bitstream → infer the protocol → (own device only) modify/replay.

GNU Radio

Flowgraph-based DSP (GNU Radio Companion) for building custom receivers/decoders when rtl_433/URH don't cover a protocol. Steeper, but the serious SDR tool.

Hardware quick-reference

Device Band / use TX?
RTL-SDR ~24 MHz–1.7 GHz, receive-only No
HackRF One 1 MHz–6 GHz Yes (half-duplex)
bladeRF / USRP wider/higher performance Yes
Ubertooth One Bluetooth/BLE sniffing —
Flipper Zero sub-GHz, NFC, IR, convenience Limited/legal-dependent
Proxmark3 RFID/NFC (125kHz/13.56MHz) Yes

OT relevance

Some industrial telemetry and sensors use sub-GHz radio or wireless HART/Zigbee. SDR lets you observe that telemetry passively — a useful, low-risk complement to wired OT-ICS protocol interaction, and firmly on the "receive only" side of the legal line.

More RF/BLE commands

rtl_433 -f 433.92M -F json -M time        # decode 433 MHz IoT, JSON + timestamps
rtl_433 -A                                 # analyser mode for unknown OOK/ASK signals
rtl_power -f 400M:450M:1k -g 50 -i 10 scan.csv   # spectrum sweep -> heatmap.py
multimon-ng -a POCSAG1200 -f alpha -t raw file.raw   # decode pager/data modes
rtl_sdr -f 433920000 -s 2.048e6 capture.iq # raw IQ -> open in URH / GNU Radio
# BLE
bluetoothctl                               # scan on; devices; connect <MAC>; menu gatt
l2ping -c 3 <MAC>                           # Bluetooth liveness
gatttool -b <MAC> --char-read -a 0x0025    # read a characteristic by handle

Transmit (HackRF/bladeRF) is licence-restricted — receive/analyse only unless on your own kit in a controlled/shielded setting.

Kill-chain usage

Recon

rtl_433 -F json                         # passively decode 433 MHz devices

Exploitation

gatttool -b <MAC> --char-write-req -a 0x25 -n 01   # write a BLE characteristic

Where it fits

Extends the wireless phase past Wi-Fi (Aircrack-ng). Mostly reconnaissance/analysis (receive, decode, understand); active transmit/replay is own-device, licensed-band, controlled-environment only. Captures can be dropped into Wireshark and tcpdump (BLE) or URH/GNU Radio (raw RF) for analysis.