Skip to content

Instantly share code, notes, and snippets.

@alanEG
Created April 19, 2023 18:09
Show Gist options
  • Save alanEG/25d43e4f8a97254275302f4f33d6734e to your computer and use it in GitHub Desktop.
Save alanEG/25d43e4f8a97254275302f4f33d6734e to your computer and use it in GitHub Desktop.
turbo intruder brute force script
chars = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
class Found:
def __init__(self):
self.found = ""
self.is_stop = False
self.is_found = False
def set(self, value):
self.found = value
found_c.set_found()
def get(self):
return self.found
def reset_found(self):
self.is_found = False
def set_found(self):
self.is_found = True
def get_found(self):
return self.is_found
found_c = Found()
processed_requests = set()
def queueRequests(target, wordlists):
engine = RequestEngine(endpoint=target.endpoint,
concurrentConnections=1,
requestsPerConnection=5,
pipeline=False
)
while True:
found_c.reset_found()
for char_s in chars:
if found_c.get_found():
break
request = found_c.get() + char_s
engine.queue(target.req, request)
def handleResponse(req, interesting):
# currently available attributes are req.status, req.wordcount, req.length and req.response
if req.length > 0 and (<CheckCond>) and req.words[0] not in found_c.found and req.status > 0:
table.add(req)
found_c.set(req.words[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment