-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am running the following test script to try to read packets from a sample .pcap file I have downloaded.
import socket
import dpkt
import sys
pcapReader = dpkt.pcap.Reader(file("test1.pcap", "rb"))
for ts, data in pcapReader:
ether = dpkt.ethernet.Ethernet(data)
if ether.type != dpkt.ethernet…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
Some of my servers collect a lot of packet data. Is there a utility (or patch to tcpdump(1)) to log a pcap stream to disk which:
Rotates based on size of data written
Prunes written files, keeping only the N most recent
Does not re-use output filenames
Is self-contained
(Ruling out, e.g., a rotation…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have some network traffic captured pcap file and want to send its packets on NIC; is it possible? Is there any application to do this?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i am using pcap sample codes to create my own sniffer. i downloaded their sample sniffer and its working on windows but not on linux. i am using gcc compiler on both machines, and i have only pcap.h included.
the error is : dereferencing pointer to incomplete type.
the netmask is causing the error…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hi, i have to do a sniffer as an assignment for the security course. i am using c and the pcap library. i got everything working well (since i got a code from the internet and changed it). but i have some questions about the code.
u_int ip_len = (ih->ver_ihl & 0xf) * 4;
ih is of type…
>>> More