Forked from https://github.com/pentestfunctions/BlueDucky and modified for my own usecases.
Additional uses cases for remote access of phone via Bluetooth vulnerability
- Access personal email client on phone, and forward specific emails to yourself.
- Accessing phone contacts on phone and call anyone.
- Access messenger app on phone and send messages.
- Access google maps.
π Youtube Video: Demonstrates the vulenrability on an adrioid phone.
Follow instructions.txt to install
- Kali linux in VMware
- BlueDucky on Kali linux to run the bluetooth vulnerability.
start_bluetooth.sh --> Commands to start bluetooth service and toggle bluetooth on from terminal.
BlueDucky is a powerful tool for exploiting a vulnerability in Bluetooth devices. By running this script, you can:
- π‘ Load saved Bluetooth devices that are no longer visible but have Bluetooth still enabled.
- π Automatically save any devices you scan.
- π Send messages via ducky script format to interact with devices.
# update apt
sudo apt-get update
sudo apt-get -y upgrade
# install dependencies from apt
sudo apt install -y bluez-tools bluez-hcidump libbluetooth-dev \
git gcc python3-pip python3-setuptools \
python3-pydbus
# install pybluez from source
git clone https://github.com/pybluez/pybluez.git
cd pybluez
sudo python3 setup.py install
# build bdaddr from the bluez source
cd ~/
git clone --depth=1 https://github.com/bluez/bluez.git
gcc -o bdaddr ~/bluez/tools/bdaddr.c ~/bluez/src/oui.c -I ~/bluez -lbluetooth
sudo cp bdaddr /usr/local/bin/# update pacman & packages
sudo pacman -Syyu
# install dependencies
# since arch doesn't separate lib packages: libbluetooth-dev included in bluez package
sudo pacman -S bluez-tools bluez-utils bluez-deprecated-tools \
python-setuptools python-pydbus python-dbus
git gcc python-pip \
# install pybluez from source
git clone https://github.com/pybluez/pybluez.git
cd pybluez
sudo python3 setup.py install
# build bdaddr from the bluez source
cd ~/
git clone --depth=1 https://github.com/bluez/bluez.git
gcc -o bdaddr ~/bluez/tools/bdaddr.c ~/bluez/src/oui.c -I ~/bluez -lbluetooth
sudo cp bdaddr /usr/local/bin/git clone https://github.com/pentestfunctions/BlueDucky.git
cd BlueDucky
sudo hciconfig hci0 up
python3 BlueDucky.pyalternatively,
pip3 install -r requirements.txt- On running, it prompts for the target MAC address.
- Pressing nothing triggers an automatic scan for devices.
- Devices previously found are stored in known_devices.txt.
- If known_devices.txt exists, it checks this file before scanning.
- Executes using payload.txt file.
- Successful execution will result in automatic connection and script running.
- Android keyboard shortcuts - Navigate android device using keyboard
- Keyboard shortcuts for gmail - Navigate gmail on android phone using keyboard shortcuts and keys.
- Key mapping to Android - Map of hex values and corresponding keyboard keys.