Мой код здесь:
#!/usr/bin/env python3
import os
print(os.sys.path)
from scapy.all import*
def sniff(interface):
scapy.sniff(iface=interface, store=False, prn=process_sniffed_packet)
def process_sniffed_packet(packet):
print(packet)
sniff("eth0")
И получил такой код ошибки:
python3 row.py
['/home/kali/Desktop', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.7/dist-packages']
Traceback (most recent call last):
File "row.py", line 11, in <module>
sniff("eth0")
File "row.py", line 6, in sniff
scapy.sniff(iface=interface, store=False, prn=process_sniffed_packet)
AttributeError: module 'scapy' has no attribute 'sniff'
Может ли кто-нибудь помочь?