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

ModuleNotFoundError: No module named '_dbus_bindings' #42

Open krt1k opened 6 months ago

krt1k commented 6 months ago

Can't able to start Blueducky.py

❯ git clone https://github.com/pentestfunctions/BlueDucky.git
cd BlueDucky
sudo hciconfig hci0 up
python3 BlueDucky.py
Cloning into 'BlueDucky'...
remote: Enumerating objects: 162, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 162 (delta 35), reused 43 (delta 22), pack-reused 102
Receiving objects: 100% (162/162), 803.75 KiB | 3.32 MiB/s, done.
Resolving deltas: 100% (69/69), done.
Traceback (most recent call last):
  File "/home/USER/BlueDucky/BlueDucky.py", line 8, in <module>
    from utils.register_device import register_hid_profile, agent_loop
  File "/home/USER/BlueDucky/utils/register_device.py", line 1, in <module>
    import dbus
  File "/usr/lib/python3/dist-packages/dbus/__init__.py", line 73, in <module>
    import dbus.types as types
  File "/usr/lib/python3/dist-packages/dbus/types.py", line 8, in <module>
    from _dbus_bindings import (
ModuleNotFoundError: No module named '_dbus_bindings'
xensurve commented 6 months ago

install dbus-python

krt1k commented 6 months ago

@xensurve, I have already installed dbus-python as well as pydbus.

❯ python --version
Python 3.10.14
❯ pip --version
pip 24.0 from /home/USER/.local/lib/python3.10/site-packages/pip (python 3.10)
❯ pip install dbus-python
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: dbus-python in /usr/lib/python3/dist-packages (1.2.16)
❯ pip install pydbus
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pydbus in /usr/lib/python3/dist-packages (0.6.0)
krt1k commented 6 months ago

Update:

After I pulled the latest commit this morning:

❯ python BlueDucky.py
=============================================================================================================================================================================
                                                                    BlueDucky - Bluetooth Device Attacker                                                                    
                                                                                   Ver 2.1                                                                                   
=============================================================================================================================================================================
Remember, you can still attack devices without visibility..
If you have their MAC address..
=============================================================================================================================================================================
Traceback (most recent call last):
  File "/home/USER/BlueDucky/BlueDucky.py", line 9, in <module>
    from utils.register_device import register_hid_profile, agent_loop
  File "/home/USER/BlueDucky/utils/register_device.py", line 1, in <module>
    import dbus
  File "/usr/lib/python3/dist-packages/dbus/__init__.py", line 73, in <module>
    import dbus.types as types
  File "/usr/lib/python3/dist-packages/dbus/types.py", line 8, in <module>
    from _dbus_bindings import (
ModuleNotFoundError: No module named '_dbus_bindings'

Getting this error