Kodumuzu çalıştırdığımızda aşağıdaki gibi bir hata alıyoruz bu neden kaynaklanıyor olabilir, yardımcı olursanız çok seviniriz.
Exception in thread Thread-2:
Traceback (most recent call last):
File “/usr/lib/python3.9/scapy/packet.py”, line 428, in getattr
fld, v = self.getfield_and_val(attr)
File “/usr/lib/python3.9/scapy/packet.py”, line 423, in getfield_and_val
raise ValueError
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.9/scapy/packet.py”, line 428, in getattr
fld, v = self.getfield_and_val(attr)
File “/usr/lib/python3.9/scapy/packet.py”, line 423, in getfield_and_val
raise ValueError
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.9/threading.py”, line 954, in _bootstrap_inner
self.run()
File “/usr/lib/python3.9/threading.py”, line 892, in run
self._target(*self._args, **self._kwargs)
File “/home/kali/Desktop/benanınçilesideneme.py”, line 93, in listen_packets
scapy.sniff(iface= interface, store= False, prn= analyze_packet)
File “/usr/lib/python3.9/scapy/sendrecv.py”, line 1263, in sniff
sniffer._run(*args, **kwargs)
File “/usr/lib/python3.9/scapy/sendrecv.py”, line 1210, in _run
session.on_packet_received(p)
File “/usr/lib/python3.9/scapy/sessions.py”, line 108, in on_packet_received
result = self.prn(pkt)
File “/home/kali/Desktop/benanınçilesideneme.py”, line 96, in analyze_packet
if packet.hasplayer(http.HTTPRequest):
File “/usr/lib/python3.9/scapy/packet.py”, line 430, in getattr
return self.payload.getattr(attr)
File “/usr/lib/python3.9/scapy/packet.py”, line 430, in getattr
return self.payload.getattr(attr)
File “/usr/lib/python3.9/scapy/packet.py”, line 428, in getattr
fld, v = self.getfield_and_val(attr)
File “/usr/lib/python3.9/scapy/packet.py”, line 1828, in getfield_and_val
raise AttributeError(attr)
AttributeError: hasplayer