Skip to content

Fix crash when DNSdumpster CSRF token is missing - #399

Open
TheSpidyOps wants to merge 1 commit into
aboul3la:masterfrom
TheSpidyOps:fix-dnsdumpster-csrf-error
Open

Fix crash when DNSdumpster CSRF token is missing#399
TheSpidyOps wants to merge 1 commit into
aboul3la:masterfrom
TheSpidyOps:fix-dnsdumpster-csrf-error

Conversation

@TheSpidyOps

Copy link
Copy Markdown

Problem:
Sublist3r currently crashes when the DNSdumpster module fails to extract the CSRF token. This happens when DNSdumpster changes its HTML structure or blocks automated requests, resulting in an empty regex match. The script then throws an IndexError when it tries to access the first element of an empty list.

Fix:
Added a check to ensure that the CSRF token was successfully extracted before accessing it. If the token is missing, the script logs a warning and gracefully skips the DNSdumpster module instead of crashing.

This improves the stability and user experience of Sublist3r.

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.

1 participant