2024-02-13 21:42:56 +00:00
|
|
|
# pcapfix
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
> Repair damaged or corrupted PCAP and PcapNG files.
|
2024-02-13 21:42:56 +00:00
|
|
|
> More information: <https://f00l.de/pcapfix/>.
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Repair a PCAP/PCapNG file (Note: for PCAP files, only the first 262144 bytes of each packet are scanned):
|
2024-02-13 21:42:56 +00:00
|
|
|
|
|
|
|
`pcapfix {{path/to/file.pcapng}}`
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Repair an entire PCAP file:
|
2024-02-13 21:42:56 +00:00
|
|
|
|
|
|
|
`pcapfix --deep-scan {{path/to/file.pcap}}`
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Repair a PCAP/PcapNG file and write the repaired file to the specified location:
|
2024-02-13 21:42:56 +00:00
|
|
|
|
|
|
|
`pcapfix --outfile {{path/to/repaired.pcap}} {{path/to/file.pcap}}`
|
|
|
|
|
2024-03-20 01:43:57 +00:00
|
|
|
- Treat the specified file as a PcapNG file, ignoring automatic recognition:
|
2024-02-13 21:42:56 +00:00
|
|
|
|
|
|
|
`pcapfix --pcapng {{path/to/file.pcapng}}`
|
|
|
|
|
|
|
|
- Repair a file and show the process in detail:
|
|
|
|
|
|
|
|
`pcapfix --verbose {{path/to/file.pcap}}`
|