Я получаю эту ошибку, и я не понимаю, почему?
ImportError: cannot import name 'http' from 'scapy.layers
Вот мой код:
import scapy.all as scapy
from scapy.layers import http #error line
def sniff(interface):
scapy.sniff(iface=interface,store=False,prn=p_s_p)
def p_s_p(packet):
if packet.haslayer(http.HTTPRequest):
print(packet)
sniff('wlan0')