fix: threading & error message 🐛
This commit is contained in:
parent
eba9a5548a
commit
fa59cbc34c
|
|
@ -2,3 +2,4 @@ argparse
|
||||||
dnspython
|
dnspython
|
||||||
requests
|
requests
|
||||||
certifi
|
certifi
|
||||||
|
billiard
|
||||||
|
|
@ -26,8 +26,7 @@ try:
|
||||||
except:
|
except:
|
||||||
import Queue
|
import Queue
|
||||||
|
|
||||||
#The 'multiprocessing' library does not rely upon a Global Interpreter Lock (GIL)
|
import billiard as multiprocessing
|
||||||
import multiprocessing
|
|
||||||
|
|
||||||
#Microsoft compatiablity
|
#Microsoft compatiablity
|
||||||
if sys.platform.startswith('win'):
|
if sys.platform.startswith('win'):
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import argparse
|
||||||
import time
|
import time
|
||||||
import hashlib
|
import hashlib
|
||||||
import random
|
import random
|
||||||
import multiprocessing
|
import billiard as multiprocessing
|
||||||
import threading
|
import threading
|
||||||
import socket
|
import socket
|
||||||
import json
|
import json
|
||||||
|
|
@ -645,7 +645,9 @@ class DNSdumpster(enumratorBaseThreaded):
|
||||||
def get_csrftoken(self, resp):
|
def get_csrftoken(self, resp):
|
||||||
csrf_regex = re.compile('<input type="hidden" name="csrfmiddlewaretoken" value="(.*?)">', re.S)
|
csrf_regex = re.compile('<input type="hidden" name="csrfmiddlewaretoken" value="(.*?)">', re.S)
|
||||||
token = csrf_regex.findall(resp)[0]
|
token = csrf_regex.findall(resp)[0]
|
||||||
return token.strip()
|
if len(token) == 0:
|
||||||
|
return None
|
||||||
|
return token[0].strip()
|
||||||
|
|
||||||
def enumerate(self):
|
def enumerate(self):
|
||||||
self.lock = threading.BoundedSemaphore(value=70)
|
self.lock = threading.BoundedSemaphore(value=70)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue