vanhoefm / krackattacks-scripts

Other
3.31k stars 768 forks source link

L2Socket is Not defined in the MitmSocket ??? #2

Closed DesenYang closed 3 years ago

DesenYang commented 6 years ago

as the title

moedje commented 6 years ago

krack.py.txt I resolved this using L2dnetSocket as the class MitmSocket inherits and it runs not sure if it works correctly yet but I didn't see any L2Socket in Scapy but did find L2dnetSocket so hoping it works... This is the full line I changed 116. class MitmSocket(L2dnetSocket): # old line: class MitmSocket(L2Socket): Anyone know if this will work correctly or not?

GrahamMThomas commented 6 years ago

I replaced the line in my code, and it appears to be working for me.

vanhoefm commented 3 years ago

This is a strange bug. The updated script now loads a python environment with a specific version of Scapy, so hopefully this bug is now avoided.