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
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.
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