pentestfunctions / BlueDucky

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

No module named 'utils.menu_functions'; 'utils' is not a package #28

Closed crashlogs closed 2 months ago

crashlogs commented 2 months ago

I am having this error when trying to run blueducky.py :

Traceback (most recent call last):
  File "/root/tools/BlueDucky/BlueDucky.py", line 7, in <module>
    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

installation and requirements all met according to the README.md

OS : Kali 2024.1 Chipset : Realtek 0bda:8761 Driver btusb

crashlogs commented 2 months ago

Came up with a solution, realized utils folder wasn't initialized as package path, I manually added init.py file in it and now it works.