0
WARNING: No route found for IPv6 destination :: (no default route?)
Traceback (most recent call last):
File "wifi_founder.py", line 9, in <module>
sniff(iface="mon0", prn=PacketHandler)
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 561, in sniff
s = L2socket(type=ETH_P_ALL, *arg, **karg)
File "/usr/lib/python2.7/dist-packages/scapy/arch/linux.py", line 455, in __init__
self.ins.bind((iface, type))
File "/home/etai/PycharmProjects/wifi_founder/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 19] No such device
Lorsque j'essayais de déboguer ce code en utilisant scapy, j'ai eu l'erreur ci-dessus, je ne sais pas quoi faire pour le résoudre. le code a été écrit en python:socket.error [Errno 19] pas un tel périphérique - Scapy Python
from scapy.all import *
ap_list = []
def PacketHandler(pkt):
if pkt.haslayer(Dot11):
if pkt.type == 0 and pkt.subtype == 8:
if pkt.addr2 not in ap_list:
ap_list.append(pkt.addr2)
print "AP MAC: %s with SSID: %s" % (pkt.addr2, pkt.info)
sniff(iface="mon0", prn=PacketHandler)
Il semble que votre ordinateur ne possède pas d'interface réseau nommée «mon0». Quelles interfaces réseau sont définies sur votre ordinateur? – Yoel