diff --git a/requirements.txt b/requirements.txt index c47fb0c..69a8589 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ argparse dnspython requests certifi +billiard \ No newline at end of file diff --git a/subbrute/subbrute.py b/subbrute/subbrute.py index c7b1ab6..0e60fdc 100644 --- a/subbrute/subbrute.py +++ b/subbrute/subbrute.py @@ -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'): diff --git a/sublist3r.py b/sublist3r.py index 58fce41..4f91146 100755 --- a/sublist3r.py +++ b/sublist3r.py @@ -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('', 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)