pcapfix tries to repair your broken pcap files by fixing the global header and recovering the packets by searching und guessing the packet headers.
To fix your files the tool first checks for an intact pcap global header and repairs it if there are some corrupted bytes. It there seems to be no global header at all, pcapfix adds a self-created one at the beginning of the file. In a second step the tool tries to find pcap packet headers inside the file, below the global header. It checks if the values are correct (or seem to be correct) and tries to repair a packet if there is something wrong.
Sometimes your captured pcap files got cut off are being corrupted in other ways. Although some captured the flag challenges deal with damaged pcap files periodically. Therefore this tool has been written!
pcapfix will first step through the packets top down until it recognizes a corrupted one by using plausibility checks. After that the tool will brute force further pcap packet headers by reading the file byte by byte. If another proper packet is found, pcapfix restores the data in between by adding a well-formed pcap packet header.
If you have any problems in compiling pcapfix or are not able to use it on your platform, tell me about this to improve pcapfix. As long as your problems remain you can use the online version of pcapfix too.
It is available HERE.
You can help out by telling me your futher wishes and features you would like pcapfix to have got. Furthermore you can send me bug reports and error messages or any broken pcap files if pcapfix is not able to repair them correctly. Last but not least, if there are any other file formats you would to have repaired and there is no tool available yet, then tell me about your idea!
:-)
pcapfix-0.7.2.tar.gz pcapfix-0.7.2-win32.zip (precompiled windows binary) Changelog
pcapfix-0.7.1.tar.gz pcapfix-0.7.1-win32.zip (precompiled windows binary) Changelog
pcapfix-0.7.tar.gz pcapfix-0.7-win32.zip (precompiled windows binary) Changelog
pcapfix-0.6.tar.gz pcapfix-0.6-win32.zip (precompiled windows binary) Changelog
pcapfix-0.5.tar.gz pcapfix-0.5-win32.zip (precompiled windows binary) Changelog
pcapfix-0.4.tar.gz pcapfix-0.4-win32.zip (precompiled windows binary) Changelog
(License is GPL v3.0)
Last update: March 30 2013 16:52 UTC+1
Robert Krause© 2012-2013