-
Notifications
You must be signed in to change notification settings - Fork 527
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
Incorrect regex causes failure - Record NSEC3 - write_db #27
Comments
will get to ll the issues you opened tonight :) Thanks for reporting the issues. |
That would be great! I would love to be able to consistently use the tool during pentests. Saves me all the manual 'dig' labour ;) |
This is fixed when using sqlite as output. I'm also testing csv and xml output. This should be the fix for a similar problem in csv output.
|
The issue for xml is different. I'll open another ticket. |
Fix applied and tested.
|
Confirmed, closing ticket. |
Line 782 of dnsrecon.py will process NSEC3 records, which results in a stacktrace as shown below:
Traceback (most recent call last):
File "dnsrecon.py", line 1666, in
main()
File "dnsrecon.py", line 1638, in main
write_db(results_db, returned_records)
File "dnsrecon.py", line 784, in write_db
'values( "%(type)s", "%(target)s", "%(address)s" )' % n
KeyError: 'target'
Suggestion for a fix (line 782):
elif re.match(r'NS$', n['type']):
The text was updated successfully, but these errors were encountered: