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

Using sleuth to calculate distribution of each individual offered cipher suite type #283

Open
davidgrewtr opened this issue Oct 8, 2019 · 2 comments

Comments

@davidgrewtr
Copy link

davidgrewtr commented Oct 8, 2019

I am using sleuth to calculate distribution of TLS offered cipher suites:-

./sleuth sample.gz --select "tls{cs}" --dist

This results in sleuth giving count of top combinations of cipher suites offered by the client e.g.,,


{"tls": {"cs": ["cc14", "cc13,", "c02b"]}, "count": 150, "total": 180}
{"tls": {"cs": ["cc14", "c030,", "cca9"]}, "count": 20,  "total": 180}
.......

How can I use sleuth to calculate distribution of each individual "cs"? e.g.,:

`{"tls": {"cs": ["cc14,]}, "count": 170, "total": 180}`
`{"tls": {"cs": ["cc13,]}, "count": 150, "total": 180}`
`{"tls": {"cs": ["c02b,]}, "count": 150, "total": 180}
@davidgrewtr
Copy link
Author

Anyone? I know it might not be an issue with sleuth itself but I do not know where else to ask this.

@banderson84
Copy link
Contributor

I am not sure if sleuth can do that. Here is a relatively simple jq/command line query:

jq 'select(.tls? != 1) | select(.tls.cs[]?) | .tls.cs[]' joy-output.json | sort | uniq -c | sort -nr

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

No branches or pull requests

2 participants