Filter tcpdump file AFTER capturing

11,838

Solution 1

Yes, it is possible. You can use the following command:

tcpdump -r your_input_file.pcap -w your_output_file.pcap "your_filter"

Tcpdump will read the input file, apply the filter, and then write the output file. You need just to come up with the right filter.

Solution 2

Try netsniff-ng, it sequentially processes the pcap unlike Wireshark, which tries to load everything into RAM.

Share:
11,838

Related videos on Youtube

Zulakis
Author by

Zulakis

Updated on September 18, 2022

Comments

  • Zulakis
    Zulakis over 1 year

    I captured a really big tcpdump file which now always crashes my wireshark. It was captured with no filters and I need to apply some afterwards to make the file smaller.

    Is this somehow possible?