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

AttributeError: 'DNSKEY' object has no attribute 'signer' #45

Closed
thepoorhacker opened this issue Nov 18, 2021 · 4 comments
Closed

AttributeError: 'DNSKEY' object has no attribute 'signer' #45

thepoorhacker opened this issue Nov 18, 2021 · 4 comments

Comments

@thepoorhacker
Copy link

Hello,
I got this error when trying to bruteforce subdomains:
Traceback (most recent call last):
File "dnscan.py", line 499, in
get_dnssec(target, nsip)
File "dnscan.py", line 263, in get_dnssec
dns.dnssec.validate(answer[0],answer[1],{name:answer[0]})
File "/usr/local/lib/python3.8/dist-packages/dns/dnssec.py", line 490, in _validate
_validate_rrsig(rrset, rrsig, keys, origin, now)
File "/usr/local/lib/python3.8/dist-packages/dns/dnssec.py", line 287, in _validate_rrsig
candidate_keys = _find_candidate_keys(keys, rrsig)
File "/usr/local/lib/python3.8/dist-packages/dns/dnssec.py", line 170, in _find_candidate_keys
value = keys.get(rrsig.signer)
AttributeError: 'DNSKEY' object has no attribute 'signer'

Regards

@rbsec
Copy link
Owner

rbsec commented Nov 22, 2021

Is there a specific (public) domain where you're encountering this error, or is on any domain? Does the domain actually have DNSSEC enabled?

@thepoorhacker
Copy link
Author

thepoorhacker commented Nov 22, 2021

it is only on this domain: worldstream.com, for other domains it works fine.

@rbsec
Copy link
Owner

rbsec commented Nov 23, 2021

I don't encounter any errors on that domain - and the DNSSEC status shows up as expected. Do you have the correct versions of dnspython and cryptography installed? You can check with the output of pip3 list | grep -E "dnspython|cryptography"

@thepoorhacker
Copy link
Author

I just rechecked again and it is working, i am so sorry for wasting your time, but i am sure that it wasn't working the time i reported this.
Thank you very much.

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