I am currently on the section - “Extracting Data From a Specific Layer”, and am having difficulties with the scapy module.
My code so far:
import scapy.all as scapy
from scapy.layers import http
scapy.sniff(iface=interface, store=False, prn=process_sniffed_packet)
The error on terminal when ran:
ImportError: cannot import name http.
Now, I have already successfully installed the required scapy packages - I have tried troubleshooting this via the official documentation, along with stackoverflow, however getting nowhere fast. The scapy documentation states that it is deprecated.
Can anyone help with this or provide a useful workaround?! I have a university assignment due in on Sunday; this course has been helping massively, however, currently stuck on this section!