Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

no module Crypto #111

Open
Diablox00 opened this issue Dec 29, 2024 · 1 comment
Open

no module Crypto #111

Diablox00 opened this issue Dec 29, 2024 · 1 comment

Comments

@Diablox00
Copy link

└─$ ./krack-test-client.py --replay-broadcast
Traceback (most recent call last):
File "/opt/krackattacks-scripts/krackattack/./krack-test-client.py", line 12, in
import libwifi
File "/opt/krackattacks-scripts/krackattack/libwifi/init.py", line 1, in
from .wifi import *
File "/opt/krackattacks-scripts/krackattack/libwifi/wifi.py", line 6, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'

┌──(diablo㉿diablo)-[/opt/krackattacks-scripts/krackattack]
└─$ pip install Crypto
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: Crypto in /home/diablo/.local/lib/python2.7/site-packages (1.4.1)
Requirement already satisfied: shellescape in /home/diablo/.local/lib/python2.7/site-packages (from Crypto) (3.8.1)
Requirement already satisfied: Naked in /home/diablo/.local/lib/python2.7/site-packages (from Crypto) (0.1.32)
Requirement already satisfied: requests in /usr/local/lib/python2.7/dist-packages (from Naked->Crypto) (2.2.1)
Requirement already satisfied: pyyaml in /home/diablo/.local/lib/python2.7/site-packages (from Naked->Crypto) (5.4.1)

┌──(diablo㉿diablo)-[/opt/krackattacks-scripts/krackattack]
└─$ ./krack-test-client.py --replay-broadcast
Traceback (most recent call last):
File "/opt/krackattacks-scripts/krackattack/./krack-test-client.py", line 12, in
import libwifi
File "/opt/krackattacks-scripts/krackattack/libwifi/init.py", line 1, in
from .wifi import *
File "/opt/krackattacks-scripts/krackattack/libwifi/wifi.py", line 6, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'

@vanhoefm
Copy link
Owner

Did you create and load the python virtual environment?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants