1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 20:35:25 +02:00
tldr/pages/common/pcapfix.md
Managor 5305776d45
*: capitalize the first letter after "Note:" (#16226)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-04 05:15:17 +03:00

699 B

pcapfix

Repair damaged or corrupted PCAP and PcapNG files. More information: https://f00l.de/pcapfix/.

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

pcapfix {{path/to/file.pcapng}}

  • Repair an entire PCAP file:

pcapfix --deep-scan {{path/to/file.pcap}}

  • Repair a PCAP/PcapNG file and write the repaired file to the specified location:

pcapfix --outfile {{path/to/repaired.pcap}} {{path/to/file.pcap}}

  • Treat the specified file as a PcapNG file, ignoring automatic recognition:

pcapfix --pcapng {{path/to/file.pcapng}}

  • Repair a file and show the process in detail:

pcapfix --verbose {{path/to/file.pcap}}