Questions tagged [pcap]
The Packet Capture library provides a high level interface to packet capture systems.
36 questions
0 votes
0 answers
74 views
Interest in High-Precision Linux Packet Replay Tool Using SO_TXTIME?
I’ve recently completed a thesis on developing a Linux-based Ethernet packet replay program that achieves high precision using the SO_TXTIME kernel option. This program is designed to replicate ...
0 votes
0 answers
62 views
mixup TCP sessions in pcap file to new pcap file
I need to shuffle TCP sessions from pcap file to new file. How can I do it? The following scripts don't work for me. To mix up sessions in a pcap file using Tshark or Wireshark, you can use the ...
1 vote
0 answers
79 views
Issues with BPF filters and 6to4 traffic
I have a pcap file captured with tcpdump: tcpdump -w out.pcap -ni eno1 host 192.88.99.1 I can view the pcap: rful011@secmonprd13:~$ tcpdump -nr out.pcap -tttt | head reading from file andy.tcpd, link-...
1 vote
1 answer
871 views
Can `tcpdump ether host` filter with a mask to get, for example, hosts with a specific OUI?
I'm trying to filter traffic by src ether host to see all devices with a specific MAC prefix. If this were like IP, it might filter with src ether host aa:bb:cc:00:00:00/24 to see OUI's matching aa:...
1 vote
1 answer
188 views
GeoIP not working when processing PCAP with tshark as su
I am working with lots of PCAP files and trying to convert them into .tsv files for tabular analysis. So I'm using tshark in a Ubuntu 22 VirtualBox machine to dissect each packet. I have a bash ...
1 vote
1 answer
1k views
How do I generate a Snort pcap file?
I am new to using snort and still learning in university. I am wondering after I find an intrusion how can I log it and save it as a pcap file? What would the syntax look like to do this? So I can ...
0 votes
1 answer
630 views
USB device shows nothing in dmesg when connected, disables port
I have an embedded linux USB host which refuses to detect a number of my USB devices. The host is running Ubutun 20.04LTS Nothing shows up in dmesg during a failed detection and afterward the USB port ...
0 votes
1 answer
757 views
Error: Invalid output format: IVS and PCAP format cannot be used together
I'm using aircrack-ng to capture a handshake on a WPA2 access point. I would like to write the outfile in pcap format, but I keep getting errors. I've tried reinstalling aircrack-ng using versions ...
1 vote
1 answer
1k views
How to send pcap file to ethernet
I have a pcap file and need to send it to specific interface. How can I do it?
0 votes
2 answers
39 views
extract application name from rawpacket
Sounds dumb, but can you extract application name from a packet/pcap. For eg: If a packet destination is to chrome process, can you extract that information from packet?
1 vote
1 answer
411 views
TShark pcap filter command possibly simplified?
Object: to find the IP addresses of HTTP servers in a pcap file with a specific header string. Can or should the -l option to flush be used? One way: the following was done but am wondering if it can ...
0 votes
0 answers
575 views
tc traffic shaping with HTB and CQB causes packet transmission gap inconsistencies
I am sorry if this is duplicate of https://serverfault.com/q/1076769/822163. I created that first and then realized the Linux and Unix stack exchange is the right place. Problem: When the tc HTB or ...
0 votes
0 answers
4k views
Installing the latest version of libpcap & libpcap-dev
In my docker container I run the following command to install the lib pcap: apt-get install -y libpcap-dev When I run apt list --installed I see this weird output: libpcap-dev/oldstable,now 1.8.1-6 ...
1 vote
0 answers
81 views
Turning ethernet on/off
I am porting a DOS application to linux and don't know a hell of a lot about linux. The application is a machine controller which uses ethernet as a high-speed serial port. Networking has nothing to ...
2 votes
1 answer
488 views
Is tcpdump a client of rpcpad and implemented in pcap?
https://www.tcpdump.org/index.html#documentation has manpages for pcap, tcpdump, and rpcapd, but I don't find what relation is between the three. Is pcap a C library for implementing a client of ...