Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scapy-http not sniffing packets #42

Open
konjecturer0 opened this issue Sep 5, 2018 · 0 comments
Open

scapy-http not sniffing packets #42

konjecturer0 opened this issue Sep 5, 2018 · 0 comments

Comments

@konjecturer0
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant