Skip to content
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 dump pkg support & bpf filter support #12

Conversation

hallelujah-shih
Copy link
Contributor

No description provided.

flagOnlyJa3S = flag.Bool("ja3s-only", false, "dump ja3s only")
flagSnaplen = flag.Int("snaplen", 1514, "default snap length for ethernet frames")
flagPromisc = flag.Bool("promisc", true, "capture in promiscuous mode (requires root)")
flagFilter = flag.String("bpf", "(tcp[((tcp[12] & 0xf0) >>2)] = 0x16) && ((tcp[((tcp[12] & 0xf0) >>2)+5] = 0x01) || (tcp[((tcp[12] & 0xf0) >>2)+5] = 0x02))", "BPF filter for pcap, only support on live")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good filter!

@deancn
Copy link

deancn commented Jul 29, 2022

@dreadl0ck kindly review?

@dreadl0ck dreadl0ck merged commit d928b0a into dreadl0ck:master Jul 30, 2022
@dreadl0ck
Copy link
Owner

Nice addition, thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants