fix: threading & error message 🐛
This commit is contained in:
parent
eba9a5548a
commit
fa59cbc34c
|
|
@ -2,3 +2,4 @@ argparse
|
|||
dnspython
|
||||
requests
|
||||
certifi
|
||||
billiard
|
||||
|
|
@ -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'):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue