Skip to content

scapy-http not sniffing packets #1583

@konjecturer0

Description

@konjecturer0

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

  • Scapy version: 3.0.0
  • Python version: Python 3.6.6
  • Operating System: Kali Linux (Debian)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions