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

encountered an error #18

Closed BG7UHS closed 6 months ago

BG7UHS commented 6 months ago

Screenshot_20240329-073325_NetHunter_Terminal

pentestfunctions commented 6 months ago

That is due to not downloading all the code. You will need the utils folder that contains the menu_functions.py file.

I'm assuming you are new to python but essentially module not found errors (as you can see on the last line of your image) is a result of a module or package containing other functions not being installed or accessible. In this case it can't find the utils folder then the menu_functions file. Which means it cannot load the import functions such as main_menu, read_duckyscript, run, restart_bluetooth_daemon and get_target_address - which are all functions I created for the code to work.

BG7UHS commented 6 months ago

I used git clone, the files are complete. Screenshot_20240329-211711_NetHunter_Terminal

pentestfunctions commented 6 months ago

You are indeed correct, I can see the utils directory. It might best to make a file in the top level folder called init.py just with touch as it can be empty. Just so that other paths you might have don't interfere.

touch __init__.py
BG7UHS commented 6 months ago

Ok Can be used normally