pcapfix
Repair damaged or corrupted PCAP and PcapNG files. tldr-pages
On several platforms
Several platforms
Repair a PCAP/PCapNG file (Note: For PCAP files, only the first 262144 bytes of each packet are scanned)
pcapfix path/to/file.pcapngIdentifyRepair an entire PCAP file
pcapfix --deep-scan path/to/file.pcapIdentifyRepair a PCAP/PcapNG file and write the repaired file to the specified location
pcapfix --outfile path/to/repaired.pcap path/to/file.pcapIdentifyTreat the specified file as a PcapNG file, ignoring automatic recognition
pcapfix --pcapng path/to/file.pcapngIdentifyRepair a file and show the process in detail
pcapfix --verbose path/to/file.pcapIdentify