This commit is contained in:
Ali . 2025-08-21 17:43:40 -04:00 committed by GitHub
commit 8e2834daa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -638,7 +638,11 @@ class DNSdumpster(enumratorBaseThreaded):
def get_csrftoken(self, resp):
csrf_regex = re.compile('<input type="hidden" name="csrfmiddlewaretoken" value="(.*?)">', re.S)
token = csrf_regex.findall(resp)[0]
tokens = csrf_regex.findall(resp)
if not tokens:
print("[-] DNSdumpster failed: CSRF token not found. Skipping...")
return []
token = tokens[0]
return token.strip()
def enumerate(self):