Advertisement
EXTREMEXPLOIT

Check Login

Nov 26th, 2018
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. A=1
  2. Keys = {}
  3. Keys["User1"] = "Test1"
  4. Keys["User2"] = "Test2"
  5. Keys["User3"] = "Test3"
  6.  
  7. def Check_Login(Keys,Username,Password):
  8.     try:
  9.         if Keys[Username]==Password:
  10.             return 1
  11.         elif Keys[Username]!=Password:
  12.             return 0
  13.     except:
  14.         return -1
  15.    
  16. while A==1:
  17.     Username = input("Usuario: ")
  18.     Password = input("Contraseña: ")
  19.     print(Check_Login(Keys,Username,Password))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement