pentestfunctions / BlueDucky

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

How to fix this? #30

Open RwOnke opened 5 months ago

RwOnke commented 5 months ago

python3 BlueDucky.py Traceback (most recent call last): File "/root/BlueDucky/BlueDucky.py", line 7, in from utils.menu_functions import (main_menu, read_duckyscript, run, restart_bluetooth_daemon, get_target_address) ModuleNotFoundError: No module named 'utils.menu_functions'; 'utils' is not a package

SonofShiva commented 4 months ago

Same problem

Feifel81 commented 4 months ago

@SonofShiva @RwOnke The files are in the wrong directory: 1: go to ~/pybluez/BlueDucky/utils 2:Copy the Files in the right folder sudo cp magic_keyboard_hid.py menu_functions.py _pycache_ register_device.py ~/pybluez/BlueDucky 3: go to ~/pybluez/BlueDucky 4: Edit the BlueDucky.py with:sudo mousepad BlueDucky.py 5: Edit line 7 & 8 remove the "utils." in each line and SAVE the File It should look like this : Line 7:from menu_functions import (main_menu, read_duckyscript, run, restart_bluetooth_daemon, get_target_address) Line 8: from register_device import register_hid_profile, agent_loop Mousepad BlueDucky 6: It should work now ........

fixes #30 @pentestfunctions Merge pull request This is completed

SonofShiva commented 4 months ago

Hey that worked, thank you very much

RwOnke commented 4 months ago

@SonofShiva @RwOnke The files are in the wrong directory: 1: go to ~/pybluez/BlueDucky/utils 2:Copy the Files in the right folder sudo cp magic_keyboard_hid.py menu_functions.py _pycache_ register_device.py ~/pybluez/BlueDucky 3: go to ~/pybluez/BlueDucky 4: Edit the BlueDucky.py with:sudo mousepad BlueDucky.py 5: Edit line 7 & 8 remove the "utils." in each line and SAVE the File It should look like this : Line 7:from menu_functions import (main_menu, read_duckyscript, run, restart_bluetooth_daemon, get_target_address) Line 8: from register_device import register_hid_profile, agent_loop Mousepad BlueDucky 6: It should work now ........

fixes #30 @pentestfunctions Merge pull request This is completed

Hey there, This worked well for me but after reboot it seems to have broken my internal bluetooth adapter, my bluetooth mouse doesnt pair and blueducky doesn't find any bluetooth devices, hcitool dev shows no devices either. Any idea on how to fix this??

Feifel81 commented 3 months ago

@RwOnke Check with journalctl | grep "bluetooth" for error messages related to bluetooth. In general you can check with journalctl in Terminal for Errors and get a hint what to look for. Difficult to say. Try running these in terminal to see if it will wake your bluetooth up: sudo systemctl enable bluetooth.service sudo systemctl start bluetooth.service