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

Fixing some small bugs #192

Merged
merged 4 commits into from
Jun 28, 2021
Merged

Fixing some small bugs #192

merged 4 commits into from
Jun 28, 2021

Conversation

usd-markus
Copy link
Contributor

Hi,
when using DnsRecon on a lot of domains (~1500), a few instances have repeatedly crashed in some cases.
All issues occured with the current git-master state and we fixed them so that DnsRecon doesn't crash anymore.

The issues were mostly timeouts or variables that are not checked for null values, details are in the commit messages.

This PR is to give back so others can also benefit from our changes :)
Let me know if there are any questions.

The request_timeout variable is used inside of the general_enum
function, but the variable is not defined in that scope, so we pass it
as a parameter
Bing is sometimes not coopearting with the default user-agent it seems,
so a custom user-agent seems appropriate here.

A timeout is also good practice as running into the timeout will allow
dnsrecon to continue even this request fails.
With the timeout set for the enum requests, dnsrecon may continue
running even if one of the services is temporarily down or not
reachable. crt.sh sometimes takes longer to respond, so a higher 30
second timeout was chosen here.
Some variables may be None in some circumstances if something went
wrong, these checks will prevent dnsrecon from crashing in those cases.
@L1ghtn1ng
Copy link
Collaborator

Thanks for this

@L1ghtn1ng L1ghtn1ng merged commit 8b417bf into darkoperator:master Jun 28, 2021
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.

2 participants