From 58fdb4d18b804b87fe9bb743ab5ba59870cc2ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20K=C3=BCthe?= Date: Tue, 13 Feb 2024 22:42:56 +0100 Subject: [PATCH] pcapfix: add page (#12231) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marek Küthe --- pages/common/pcapfix.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/pcapfix.md diff --git a/pages/common/pcapfix.md b/pages/common/pcapfix.md new file mode 100644 index 000000000..0ec6ccfea --- /dev/null +++ b/pages/common/pcapfix.md @@ -0,0 +1,24 @@ +# pcapfix + +> Repair damaged or corrupted `pcap` and `pcapng` files. +> More information: . + +- 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}}` + +- Repair a `pcapng` file and treat it as a `pcapng` file, ignoring the automatic recognition: + +`pcapfix --pcapng {{path/to/file.pcapng}}` + +- Repair a file and show the process in detail: + +`pcapfix --verbose {{path/to/file.pcap}}`