invernizzi / scapy-http

Support for HTTP in Scapy
Other
301 stars 77 forks source link

scapy-http not sniffing packets #42

Open konjecturer0 opened 5 years ago

konjecturer0 commented 5 years ago

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")`