LinuxCommandLibrary

pcapfix

Repair damaged or corrupted PCAP and PcapNG files.

TLDR

Repair a PCAP/PCapNG file (Note: for PCAP files, only the first 262144 bytes of each packet are scanned)

$ pcapfix [path/to/file.pcapng]
copy


Repair an entire PCAP file
$ pcapfix --deep-scan [path/to/file.pcap]
copy


Repair a PCAP/PcapNG file and write the repaired file to the specified location
$ pcapfix --outfile [path/to/repaired.pcap] [path/to/file.pcap]
copy


Treat the specified file as a PcapNG file, ignoring automatic recognition
$ pcapfix --pcapng [path/to/file.pcapng]
copy


Repair a file and show the process in detail
$ pcapfix --verbose [path/to/file.pcap]
copy

Copied to clipboard