You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# IMPORTANT: if you get connection refused (111)# Check the bluetooth service
sudo systemctl status bluetooth
# Start bluetooth if it was not active
sudo systemctl restart bluetooth
# check if device soft or hard blocked in rfkill
sudo rfkill
# Troubleshoot service issues
rmmod btusb
rmmod btintel
modprobe btintel
modprobe btusb
gatttool (if your Kali doesn't have BlueZ)
sudo apt update
sudo apt install -y build-essential autoconf automake libtool pkg-config \
libglib2.0-dev libdbus-1-dev libudev-dev libical-dev libreadline-dev \
libbluetooth-dev wget python3-docutils binutils
# Check your BlueZ version
bluetoothctl --version
export BLUEZ=5.71 # use your version herecd /tmp
wget https://www.kernel.org/pub/linux/bluetooth/bluez-${BLUEZ}.tar.xz
tar xf bluez-${BLUEZ}.tar.xz
cd bluez-${BLUEZ}
./configure --enable-deprecated --enable-tools --enable-library
make -j4
sudo cp /tmp/bluez-${BLUEZ}/attrib/gatttool /usr/local/bin/
sudo chmod +x /usr/local/bin/gatttool
Interface Setup
# Check all interface statuses
sudo hciconfig
# Bring one interface eg hci0 up
sudo hciconfig -a hci0 up
# Take an interface down
sudo hciconfig -a hci0 down
# Scan for Devices## bluetoothctl```bashsudo bluetoothctl scan on# wait for the device to show up scan off quitbluetoothctl --timeout 10 scan on | grep -i iotexport BDADDR=<target device address>