Skip to content

Instantly share code, notes, and snippets.

@adithyan-ak
Created July 5, 2021 17:09
Show Gist options
  • Save adithyan-ak/cbc9d20205f0492a3471c0b47416ff6d to your computer and use it in GitHub Desktop.
Save adithyan-ak/cbc9d20205f0492a3471c0b47416ff6d to your computer and use it in GitHub Desktop.
def queueRequests(target, wordlists):
engine = RequestEngine(endpoint=target.endpoint,
concurrentConnections=5,
requestsPerConnection=100,
pipeline=False
)
# regular wordlist
for line in open('C:\wordlist.txt'):
engine.queue(target.req, line.rstrip())
# clipboard, split on lines
for word in wordlists.clipboard:
engine.queue(target.req, word)
# list of all words observed during passive scans
for word in wordlists.observedWords:
engine.queue(target.req, word)
# infinitely-running bruteforce (a, b ... aaa, aab etc)
seed = 0
while True:
batch = []
seed = wordlists.bruteforce.generate(seed, 5000, batch)
for word in batch:
engine.queue(target.req, word)
def handleResponse(req, interesting):
table.add(req)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment