pentestfunctions / BlueDucky

🚨 CVE-2023-45866 - BlueDucky Implementation (Using DuckyScript) 🔓 Unauthenticated Peering Leading to Code Execution (Using HID Keyboard)
1.27k stars 218 forks source link

How can I solve this?(ERROR-Unable to set adapter name) #52

Open Vamerio opened 6 months ago

Vamerio commented 6 months ago

After I choose the payload, It shows this problem

mohamedmajid91 commented 6 months ago

!/bin/bash

Script to unblock and restore Bluetooth after a crash of BlueDucky.py

echo "Restoring Bluetooth..." Unblock the Bluetooth device

if ! sudo rfkill unblock bluetooth; then echo "Failed to unblock Bluetooth device." exit 1 fi Bring up the Bluetooth interface

if ! sudo hciconfig hci1 up; then echo "Failed to bring up Bluetooth interface." exit 1 fi Restart the Bluetooth service

if ! sudo systemctl restart bluetooth; then echo "Failed to restart Bluetooth service." exit 1 fi Wait for the service to restart

sleep 5 Use bluetoothctl to configure Bluetooth

{ echo "power on" sleep 1 echo "agent off" sleep 1 echo "agent on" sleep 1 echo "default-agent" sleep 1 echo "scan on" sleep 5 } | bluetoothctl

echo "Bluetooth restored successfully." Delay before running the Python script

sleep 5 Run the Python script

if ! sudo python3 BlueDucky.py; then echo "Failed to run BlueDucky.py." exit 1 fi

exit 0

sudo nano restore_bluetooth.sh

sudo chmod +x restore_bluetooth.sh

Aggelos11 commented 6 months ago

Hey which Bluetooth adaptor do you use ?

mohamedmajid91 commented 6 months ago

Hey which Bluetooth adaptor do you use ?

ud100

Vamerio commented 5 months ago

Hey which Bluetooth adaptor do you use ?

ud100

Sorry for the late response,the name of the adaptor is Cambridge Silicon Radio Ltd.

Aggelos11 commented 5 months ago

Can you send us an Amazon link to this adaptor ?

Στις Παρ 7 Ιουν 2024 στις 5:52 μμ ο χρήστης Vamerio < @.***> έγραψε:

Hey which Bluetooth adaptor do you use ?

ud100

Sorry for the late response,the name of the adaptor is Cambridge Silicon Radio Ltd.

— Reply to this email directly, view it on GitHub https://github.com/pentestfunctions/BlueDucky/issues/52#issuecomment-2155007039, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO36KNHYSBBA2YG2IBB6Q7TZGHCLJAVCNFSM6AAAAABICTSA76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGAYDOMBTHE . You are receiving this because you commented.Message ID: @.***>

moadpy commented 2 months ago
image

Delete line 615 in the code. That line tries to change the name of the adapters, which causes the error. After deleting it, the script worked for me