Buenas, he conseguido tirarlo pero me salta lo siguiente:
sudo python wpsig.py -i wlp2s0 -p
WARNING: unable to find PyLorcon2 library.
Wi-Fi Protected Setup Information Gathering.
WARNING: Using passive mode.
Press Ctrl+C to stop.
Sniffing...
----------------------------------------------------------------------------
Traceback (most recent call last):
File "wpsig.py", line 640, in <module>
ws.scan()
File "wpsig.py", line 458, in scan
data = self.__processPacket(packet, self.__context)
File "wpsig.py", line 549, in __processPacket
packet = Packet(pkt)
File "wpsig.py", line 85, in __init__
self.caplen = self.header.getcaplen()
AttributeError: 'NoneType' object has no attribute 'getcaplen'
No se me ocurre el motivo por el que falla, ya que es el código sin modificar, en el archivo wpsig.py:
def __init__(self, pkt):
self.header = pkt[0]
self.data = pkt[1]
self.caplen = self.header.getcaplen() ********
self.length = self.header.getlen()
self.timestamp = datetime.datetime.fromtimestamp(self.header.getts()[0])
self.microseconds = self.header.getts()[1]