diff --git a/sublist3r.py b/sublist3r.py index 760e5ce..5028e09 100755 --- a/sublist3r.py +++ b/sublist3r.py @@ -638,8 +638,11 @@ class DNSdumpster(enumratorBaseThreaded): def get_csrftoken(self, resp): csrf_regex = re.compile('', 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)