Category "scapy"

How to read TCP protocol data in a saved pcap file using scapy?

I am trying to read a Pcap file using scapy from scapy.all import * logfile = rdpcap('./Pcap/112400.pcap') print(logfile) output pcap: TCP:0 UDP:0 ICMP:0 Ot

How to control Scapy sending packets speed?

I am using Scapy to forge random tcp and udp flows to test packet-in flooding in my SDN experiment. But I don't know how to control Scapy sending packets speed.

ImportError: cannot import name 'http' from 'scapy.layers

I am getting this error and I don't understand why? ImportError: cannot import name 'http' from 'scapy.layers Here is my code: import scapy.all as scapy fro

How to modify PN field for each packet sent by Scapy (MACSec)

I'm trying to send created MACSec packets using Scapy in order to simulate Replay Protection faults. I'm not looking at receiving and processing them, just to s

Packets don't have 'http' layer available

**Hi all, I am learning online about network packets. I came across 'Scapy' in python. I am supposed to have 'Http' section the packet results available in term

Getting JSON content from a packet using Scapy with Python

I have a pcapng file that contains a little bit of traffic. One of the packets I am trying to print out is containing JSON data. If I open the packet up in Wire

Python3 - installing Scapy in OS

I installed the networking module Scapy. When I import scapy (import scapy) everything works fine. When I import all from scapy (from scapy.all import *), it br

Scapy send packets speed up in Windows

In Windows I need to send an NBNS name query packet (which uses UDP protocol), and I need to send 255 packets and get an answer for each. With Scapy it takes a

Cannot find Ether class from scapy module

I keep getting an error that says the Ether() method is not defined in my script. I'm using python 2.7 and the arprequest and arpresponse variables are inside a

Python ARP spoofer using scapy module

Im trying to code a basic arp spoofer following a tutorial i found online. So I coded the basic beginnig of the arpSpoofer but when i execute it throws an Index

parse pcap file with scapy

I am comparing scapy and dpkt in terms of speed. I have a directory with pcap files which I parse and count the http requests in each file. Here's the scapy cod

Why uses scapy wrong source mac-adress with 'sendp()'

I use the function sendp() in scapy to send some messages at layer2. My pc has 6 LAN interfaces and I specify one interface (enp2s0f0) in sendp(). When I obser