Open konjecturer0 opened 5 years ago
while using scapy-http, I don't get any packet printing out on the console (not sniffing)
I was having a problem related to bytes and strings using scapy-http but resolved thanks by the following github issue: https://github.com/invernizzi/scapy-http/pull/27/files
< dump results that outline the issue, please format your code >
`#! python3.6
import scapy.all as scapy import scapy_http.http
def sniff(interface): scapy.sniff(iface=interface, store=False, prn=process_sniffed_packet)
def process_sniffed_packet(packet): if packet.haslayer(scapy_http.http.HTTPRequest): print(packet.show())
sniff("eth0")`
Brief description
while using scapy-http, I don't get any packet printing out on the console (not sniffing)
I was having a problem related to bytes and strings using scapy-http but resolved thanks by the following github issue: https://github.com/invernizzi/scapy-http/pull/27/files
Environment
< dump results that outline the issue, please format your code >
`#! python3.6
import scapy.all as scapy import scapy_http.http
def sniff(interface): scapy.sniff(iface=interface, store=False, prn=process_sniffed_packet)
def process_sniffed_packet(packet): if packet.haslayer(scapy_http.http.HTTPRequest): print(packet.show())
sniff("eth0")`