Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 747 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 747 Bytes

PCAP tools

Set of tools for manipulating with PCAP files.

pcap_filter

pcap_filter - strip payload from the packets in PCAP file - filter PCAP file using libpcap filters

Usage: ./pcap_filter [-s] [-f "filter"] [-o dump_filename] -i input_file

    -i input file, must be in format which can be read by pcap library, supports only ethernet encapsulation
    -s strip packet payload, leave only packet headers (Ethernet, IP, TCP/UDP)
    -o output file, will be written in PCAP format
    -f filter (similar to tcpdump filters)

joining pcap files

The simples way how to concat more pcap files into the one:

./head -q -c -24 pcap_file1 pcap_file2 pcap_file3 ... > big_pcal