Skip to content
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

Pitchfork script #96

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
21 changes: 21 additions & 0 deletions resources/examples/pitchFork.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
def queueRequests(target, wordlists):
engine = RequestEngine(endpoint=target.endpoint,
concurrentConnections=5,
requestsPerConnection=100,
pipeline=False
)
payload1 = []
payload2 = []
for eachWord in open('/usr/share/dict/numbers.txt'):
payload1.append(eachWord.strip())
for eachWord in open('/usr/share/dict/posspass.txt'):
payload2.append(eachWord.strip())
for i in range(0,len(payload2) if(len(payload2)<=len(payload1)) else len(payload1)):
# execute till the length of smaller payload.
engine.queue(target.req, [payload1[i], payload2[i]])


def handleResponse(req, interesting):
# currently available attributes are req.status, req.wordcount, req.length and req.response
if req.status != 404:
table.add(req)