-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PCAP recognition #25
Conversation
Also probably you should allow |
Hey, thanks for the PR! if magic.startswith("pcap capture file"):
sample_class.update(
{
"kind": "pcap",
}
)
return sample_class should work just fine |
Maybe we should also add support for handling pcapng files? |
Use `file` to determine extension. Add pcapng support.
It seems that you're using an old version of libmagic. In my case the output for pcapng has the following output: We know that it's suboptimal to rely on values that aren't stable between environments. To alleviate this problem we'd like to stop depending on system-installed version of libmagic database and ship another one with the classifier. You can track this issue here: #26. |
Fmm, for current case with pcapng there is a solution, i'll make a new commit... |
I would like to see this change, it's very useful thing BUT it changes the file processing pipeline, this way it need to be discussed with karton developers. |
Thank you. Please look at other issues in |
Unmerged commits... |
Understood :) |
Thanks! |
Match first four bytes to detect pcap files