sgxgsx / BlueToolkit

BlueToolkit is an extensible Bluetooth Classic vulnerability testing framework that helps uncover new and old vulnerabilities in Bluetooth-enabled devices. Could be used in the vulnerability research, penetration testing and bluetooth hacking. We also collected and classified Bluetooth vulnerabilities in an "Awesome Bluetooth Security" way
Other
339 stars 31 forks source link

Was working fine on nethunter 2 months ago then stopped working #8

Open dr1408 opened 1 month ago

dr1408 commented 1 month ago

CC4799BF-A926-4B49-B106-DCFD1C6638D9

I installed the tool 2 months ago and everything was fine but now it show this errors when i run it .. i tried running as binary and as a python module and this is the output i hope there will be a fix

┌──(venv)─(root㉿kali)-[/usr/share/BlueToolkit/bluekit/bluekit] └─# python3 bluekit.py /usr/share/BlueToolkit/bluekit/bluekit/bluekit.py:2: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources Traceback (most recent call last): File "/usr/share/BlueToolkit/bluekit/bluekit/bluekit.py", line 13, in from bluekit.constants import CURRENT_DIRECTORY, TOOLKIT_BLUEEXPLOITER_INSTALLATION_DIRECTORY, TOOLKIT_INSTALLATION_DIRECTORY File "/usr/share/BlueToolkit/bluekit/bluekit/bluekit.py", line 13, in from bluekit.constants import CURRENT_DIRECTORY, TOOLKIT_BLUEEXPLOITER_INSTALLATION_DIRECTORY, TOOLKIT_INSTALLATION_DIRECTORY ModuleNotFoundError: No module named 'bluekit.constants'; 'bluekit' is not a package

ziggsbee commented 1 month ago

I was having a similar issue on Ubuntu. Make sure to run:

source /usr/share/BlueToolkit/.venv/bin/activate

Then rerun the command:

sudo -E env PATH=$PATH bluekit -h

This starts the correct python virtual environment that was setup during the install. I have been following the documentation in the Workflow guide. Hopefully that helps!

sgxgsx commented 1 month ago

Hi @dr1408 , try what @ziggsbee offered, as it indeed seems that you forgot to first enter the environment in which the toolkit is installed.

The second output shows that you are in a venv already and there is some kind of error due to deprecated method.

Nevertheless, could you please let me know which python3 version you use and whether what @ziggsbee proposed worked?

dr1408 commented 1 month ago

Actually the solution was to go inside the tool folder and run the setup.py then the tool installed correctly and worked

sgxgsx commented 3 weeks ago

@dr1408 From what you said it seems you use an old python3 version? Which python3 version do you use?