Permalink
albinowax
Automatically start the request engine
04dd914
Nov 19, 2019
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up| def queueRequests(target, wordlists): | |
| engine = RequestEngine(endpoint=target.endpoint, | |
| concurrentConnections=30, | |
| requestsPerConnection=100, | |
| pipeline=False | |
| ) | |
| # the 'gate' argument blocks the final byte of each request until openGate is invoked | |
| for i in range(30): | |
| engine.queue(target.req, target.baseInput, gate='race1') | |
| # wait until every 'race1' tagged request is ready | |
| # then send the final byte of each request | |
| # (this method is non-blocking, just like queue) | |
| engine.openGate('race1') | |
| engine.complete(timeout=60) | |
| def handleResponse(req, interesting): | |
| table.add(req) |