vanhoefm / krackattacks-scripts

Other
3.34k stars 770 forks source link

NameError: name 'L2Socket' is not defined #106

Closed DEATHxDEVIL closed 1 month ago

DEATHxDEVIL commented 1 month ago

Traceback (most recent call last): File "/home/diablo/scripts/hacks/wireless/wifi/krackattacks-scripts/krackattack/./krack-test-client.py", line 12, in import libwifi File "/home/diablo/scripts/hacks/wireless/wifi/krackattacks-scripts/krackattack/libwifi/init.py", line 1, in from .wifi import * File "/home/diablo/scripts/hacks/wireless/wifi/krackattacks-scripts/krackattack/libwifi/wifi.py", line 204, in class MonitorSocket(L2Socket): ^^^^^^^^ NameError: name 'L2Socket' is not defined

vanhoefm commented 1 month ago

You're likely not using the virtual python environment source venv/bin/activate before running the script. Based on your second report this works now, so closing this.