joincap v0.10.2 releases: Merge multiple pcap files together
joincap
Merge multiple pcap files together, gracefully.
Why?
I believe skipping corrupt packets is better than failing the entire merge job.
When using tcpslice ormergecap sometimes pcapfix is needed to fix bad input pcap files.
- One option is to try and run merge (mergecap/tcpslice), if we get errors then run pcapfix on the bad pcaps and then run merge again.
- Adds complexity (run -> check errors -> fix -> rerun)
- (If errors) Demands more resources (pcapfix processes)
- (If errors) Extends the total runtime
- Another option is to run pcapfix on the input pcap files and then merge.
- Extends the total run time by a lot (read and write each pcap twice instead of once)
- Demands more storage (for the fixed pcaps)
- Demands more resources (pcapfix processes)
- We can use pcapfix “in memory” with process substitution: mergecap -w out.pcap <(pcapfix -o /dev/stdout 1.pcap) <(pcapfix -o /dev/stdout 2.pcap).
- Adds complexity (build a complex command line)
- Demands more resources (pcapfix processes)
- Harder for us to use pathname expansion (e.g. tcpslice -w out.pcap *.pcap)
- We have to mind the command line character limit (in case of long pathnames)
- Doesn’t work for tcpslice (seeks the last packets to calculate time ranges – cannot do this with pipes)
Changelog vv0.10.2
- use ZeroCopyReadPacketData which is much faster than ReadPacketDat
Download
Use
Copyright (c) 2018-preset Assaf Morami
Source: https://github.com/assafmo/