Fixed bug in Subbrute

This commit is contained in:
Ahmed Aboul-Ela 2016-06-20 02:03:56 +02:00
parent cb3467a48b
commit 364a4ab3f2
1 changed files with 6 additions and 2 deletions

View File

@ -426,8 +426,12 @@ def run(target, record_type = None, subdomains = "names.txt", resolve_list = "re
resolve_list = check_open(resolve_list) resolve_list = check_open(resolve_list)
if (len(resolve_list) / 16) < process_count: if (len(resolve_list) / 16) < process_count:
sys.stderr.write('Warning: Fewer than 16 resovlers per thread, consider adding more nameservers to resolvers.txt.\n') sys.stderr.write('Warning: Fewer than 16 resovlers per thread, consider adding more nameservers to resolvers.txt.\n')
if os.name == 'nt':
wildcards = {} wildcards = {}
spider_blacklist = {} spider_blacklist = {}
else:
wildcards = multiprocessing.Manager().dict()
spider_blacklist = multiprocessing.Manager().dict()
in_q = multiprocessing.Queue() in_q = multiprocessing.Queue()
out_q = multiprocessing.Queue() out_q = multiprocessing.Queue()
#have a buffer of at most two new nameservers that lookup processes can draw from. #have a buffer of at most two new nameservers that lookup processes can draw from.