assafmo / joincap Goto Github PK
View Code? Open in Web Editor NEWMerge multiple pcap files together, gracefully.
License: MIT License
Merge multiple pcap files together, gracefully.
License: MIT License
Hello @assafmo ,
I have been using joincap
as a local development tool for merging granular pcap files into larger pcap files. However, when I tried to deploy it onto a linux environment (it was working perfectly on windows locally), I am unable to merge any pcap files. Below is the verbose output, and this is the same output when sudo'd
user@machine:~$ joincap -v -w=output.pcap input.pcap
user@machine:~$ sudo joincap -v -w=output.pcap input.pcap
both yield:
2019/04/17 17:09:20 joincap v0.10.1 - https://github.com/assafmo/joincap
2019/04/17 17:09:20 input.pcap: open input.pcap: permission denied (skipping this file)
2019/04/17 17:09:20 merging 0 input files of size 0 B
2019/04/17 17:09:20 cannot open output.pcap for writing: open output.pcap: permission denied
This happens regardless of user and directory permissions (I'm doing this in the home directory of my user, so it follows that I have read/write privileges). Any ideas as to what is going on here? I would love to get this tool working on this environment (ubuntu 16.04). Any help would be extremely appreciated!
Thanks,
Jonathan
Since this appears to be the only tool currently allowing a directory to specify the source of pcaps, it would be useful to have a "follow" mode where joincap can merge existing files, but watch the final file for growth as well as watch the specified directory for new pcaps to join. The goal would be to allow one tool to write pcaps while joincap to reads and follows what's written in near-realtime for streaming to other tools that consume pcaps.
If implemented, it may also be necessary to have a start-time option that suppresses output of any packets prior to a given date/time. That would allow one to restart an aborted joincap in follow-mode from a given point without needing to clear out already processed files from the source directory.
TODO
TODO
Hi
when i run this command :
./joincap-macos64-v0.10.2 -w test.pcap test_*.pcap -v
nothing appear, just created a file with these errors
2020/10/12 14:03:42 joincap v0.10.2 - https://github.com/assafmo/joincap 2020/10/12 14:03:42 test_00001_20201003010017.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003011513.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003013009.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003014000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003014800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003015600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003020409.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003021202.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003022000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003022800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003024400.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003025200.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003030000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003030800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003031600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003032400.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003034000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003034800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003035600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003040400.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003041212.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003042000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003043600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003044400.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003045200.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003050000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003050800.pcap: done (closing) 2020/10/12 14:03:42 test_00001_20201003050800.pcap: EOF before first packet (skipping this file) 2020/10/12 14:03:42 test_00001_20201003051600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003053200.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003054000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003054800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003055600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003060400.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003061201.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003062800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003063600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003064404.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003065200.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003070000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003070800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003072401.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003073200.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003074000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003074800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003075600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003080401.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003082000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003082800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003083600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003084400.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003085200.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003090000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003091600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003092400.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003093200.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003094000.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003094800.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201003095600.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005100018.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005101509.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005102146.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005102300.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005103100.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005103443.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005103914.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005104750.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005105430.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005105437.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201005105957.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201006104518.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201006105300.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201006110100.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201007104518.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201007105305.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201007110100.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201008104512.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201008105300.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201008110100.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201009104519.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00001_20201009105300.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00002_20201003063344.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00002_20201003063900.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00002_20201006110618.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00003_20201006110856.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 test_00004_20201006111138.pcap: Unknown magic a0d0d0a (skipping this file) 2020/10/12 14:03:42 merging 0 input files of size 24 B 2020/10/12 14:03:42 writing to test.pcap
There can also be a limit of number of packets that can be merged or limit on size of merged file i.e merged file should not be greater then specified limit
I rummaged through several programs and scripts to combine pcap files, but your program is the best. I mainly use Kali Nethunter on an android phone and I would like to have this tool on it as well. Could you release an implementation for arm64? Since I have zero in compilation, but I haven’t found any ready-made solutions on the Internet. Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.