vanhoefm / krackattacks-scripts

Other
3.33k stars 768 forks source link

ModuleNotFoundError: No module named 'Crypto' #95

Closed hacker369 closed 7 months ago

hacker369 commented 1 year ago

──(root㉿kali)-[/home/kali/桌面/krackattacks-scripts/krackattack] └─# ./krack-test-client.py --replay-broadcast Traceback (most recent call last): File "/home/kali/桌面/krackattacks-scripts/krackattack/./krack-test-client.py", line 12, in import libwifi File "/home/kali/桌面/krackattacks-scripts/krackattack/libwifi/init.py", line 1, in from .wifi import * File "/home/kali/桌面/krackattacks-scripts/krackattack/libwifi/wifi.py", line 6, in from Crypto.Cipher import AES ModuleNotFoundError: No module named 'Crypto' How to fix it?

hacker369 commented 1 year ago

source venv/bin/activate source: 没有那个文件或目录: venv/bin/activate

vanhoefm commented 1 year ago

Run ./pysetup.sh and then source venv/bin/activate

ChillVibesMushroom commented 1 year ago

Run ./pysetup.sh and then source venv/bin/activate OS: KALI Linux kali 5.18.0-kali5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1kali6 (2022-07-07) x86_64 GNU/Linux pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11) Python 3.11.2

Then I disable hwencryption with the script provided

disable-hwcrypto.sh

do a reboot and run the exploit?

okay man I'll try that.

ChillVibesMushroom commented 1 year ago

I managed to get things working and even captured the 4 way hand shake but when I do connect to the second ap that hosts from the script it says there is no internet connection so what am I doing wrong? I want to be able to do it like the video shown in this url

https://www.krackattacks.com/

I can capture the hand shake though but I can't visit web pages :(

Guru185 commented 7 months ago

@vanhoefm @hacker369 At last client is not getting internet, Is there any other way to resolve this.