Skip to content

fix: threading & error message 🐛 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ argparse
dnspython
requests
certifi
billiard
3 changes: 1 addition & 2 deletions subbrute/subbrute.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
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'):
Expand Down
6 changes: 4 additions & 2 deletions sublist3r.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import time
import hashlib
import random
import multiprocessing
import billiard as multiprocessing
import threading
import socket
import json
Expand Down Expand Up @@ -645,7 +645,9 @@ def req(self, req_method, url, params=None):
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)
Expand Down