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 'bluetooth' #36

Closed djaberoff closed 1 month ago

djaberoff commented 1 month ago

image_2024-05-13_165556519

what should i do ?

djaberoff commented 1 month ago

oh, i remembered something to ask, do i need linux to run it or i can run it on windows

abdulhakkeempa commented 1 month ago

@djaberoff I tried it on Linux. Faces the same issues, so it is not a platform dependent issue.

djaberoff commented 1 month ago

@djaberoff I tried it on Linux. Faces the same issues, so it is not a platform dependent issue.

oh thank you i was going to switch to linux, u really saved me <3

abdulhakkeempa commented 1 month ago

@djaberoff I tried it on Linux. Faces the same issues, so it is not a platform dependent issue.

oh thank you i was going to switch to linux, u really saved me <3

Oh, found that the issue was caused due to my Conda Environment. When I disabled it, it worked well. I advise you to try it own Linux environment itself.

pragnesh-singh-rajput commented 1 month ago

I got the same error at first but when i did the setup properly it worked

Do this setup first then run the py file

update apt

sudo apt-get update sudo apt-get -y upgrade

install dependencies from apt

sudo apt install -y bluez-tools bluez-hcidump libbluetooth-dev \ git gcc python3-pip python3-setuptools \ python3-pydbus

install pybluez from source

git clone https://github.com/pybluez/pybluez.git cd pybluez sudo python3 setup.py install

build bdaddr from the bluez source

cd ~/ git clone --depth=1 https://github.com/bluez/bluez.git gcc -o bdaddr ~/bluez/tools/bdaddr.c ~/bluez/src/oui.c -I ~/bluez -lbluetooth sudo cp bdaddr /usr/local/bin/

djaberoff commented 1 month ago

sudo apt-get update

how do i do it please <<<3

djaberoff commented 1 month ago

I got the same error at first but when i did the setup properly it worked

Do this setup first then run the py file

update apt

sudo apt-get update sudo apt-get -y upgrade

install dependencies from apt

sudo apt install -y bluez-tools bluez-hcidump libbluetooth-dev git gcc python3-pip python3-setuptools python3-pydbus

install pybluez from source

git clone https://github.com/pybluez/pybluez.git cd pybluez sudo python3 setup.py install

build bdaddr from the bluez source

cd ~/ git clone --depth=1 https://github.com/bluez/bluez.git gcc -o bdaddr ~/bluez/tools/bdaddr.c ~/bluez/src/oui.c -I ~/bluez -lbluetooth sudo cp bdaddr /usr/local/bin/

it sais that sudo is not recognised

coldvisionz commented 1 month ago

you're on windows lol

djaberoff commented 1 month ago

you're on windows lol

do i need linux ?

coldvisionz commented 1 month ago

you're on windows lol

do i need linux ?

yes.

djaberoff commented 1 month ago

you're on windows lol

do i need linux ?

yes.

ooh tysm <<<<<3333