This commit is contained in:
Mudassir Ashraf 2026-05-19 07:13:54 +05:00 committed by GitHub
commit 60b13ace90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -638,8 +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]
return token.strip()
try:
token = csrf_regex.findall(resp)[0]
return token
except:
return ""
def enumerate(self):
self.lock = threading.BoundedSemaphore(value=70)