-
Notifications
You must be signed in to change notification settings - Fork 915
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
auth sdig: some improvements for stdin mode #14665
Conversation
Pull Request Test Coverage Report for Build 10959235523Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@phonedph1 suggested not requiring 3 more arguments after |
One problem I had was that I wanted to decode an arbitrary DNS query, but the Here's how I used it with
|
That somewhat surprises me. Do you have a base64 packet for me that sdig handles differently for A vs. ANY? |
I must have been pulling a ChatGPT (hallucinating), because it seems to be working now. 🙄 |
73a5a52
to
703e8e2
Compare
This looks great for passing responses in: $ echo O8mBgAABAAYAAAABBmdvb2dsZQNjb20AAAEAAcAMAAEAAQAAASwABKzZ12XADAABAAEAAAEsAASs2ddxwAwAAQABAAABLAAErNnXZsAMAAEAAQAAASwABKzZ14rADAABAAEAAAEsAASs2deLwAwAAQABAAABLAAErNnXZAAAKQIAAAAAAAALAAgABwABGBgBAgM= | base64 -d | ./sdig stdin 0 . A
Reply to question for qname='google.com.', qtype=A, ID=15305
Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
0 google.com. 300 IN A 172.217.215.101
0 google.com. 300 IN A 172.217.215.113
0 google.com. 300 IN A 172.217.215.102
0 google.com. 300 IN A 172.217.215.138
0 google.com. 300 IN A 172.217.215.139
0 google.com. 300 IN A 172.217.215.100
2 . 0 IN OPT AAgABwABGBgBAgM=
EDNS Subnet response: 1.2.3.0/24, scope: 1.2.3.0/24, family = 2 Thanks @Habbie |
It's good, but a use case that really shines is grabbing the dns requests in
(Note: the output is from an old version of |
We should document this somewhere. I'm just not sure where somewhere is! |
Short description
as mentioned in comments to #14649
Checklist
I have: