fix: threading & error message 🐛

This commit is contained in:
= 2025-04-06 19:03:36 +02:00
parent eba9a5548a
commit fa59cbc34c
3 changed files with 6 additions and 4 deletions

View File

@ -2,3 +2,4 @@ argparse
dnspython
requests
certifi
billiard

View File

@ -26,8 +26,7 @@ try:
except:
import Queue
#The 'multiprocessing' library does not rely upon a Global Interpreter Lock (GIL)
import multiprocessing
import billiard as multiprocessing
#Microsoft compatiablity
if sys.platform.startswith('win'):

View File

@ -12,7 +12,7 @@ import argparse
import time
import hashlib
import random
import multiprocessing
import billiard as multiprocessing
import threading
import socket
import json
@ -645,7 +645,9 @@ 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()
if len(token) == 0:
return None
return token[0].strip()
def enumerate(self):
self.lock = threading.BoundedSemaphore(value=70)