Guest User

Untitled

a guest
Sep 30th, 2017
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.87 KB | None | 0 0
  1. import time
  2.  
  3. utilizador = "admin"
  4. password = 123
  5. root = 122112
  6.  
  7.  
  8.  
  9.  
  10.    
  11. print("+-------------------------------------------+")
  12. print("| Black Man  -  Industrial Security System  |")                      
  13. print("| Developed by: Xx_DarDoAzuL_xX             |")
  14. print("+-------------------------------------------+")
  15.  
  16.  
  17. while True:
  18.    
  19.     print("")
  20.     print("+-------------------------------------------+")
  21.     username = str(input("   +--> Enter username: "))
  22.  
  23.     if username == utilizador:
  24.  
  25.         print("+-------------------------------------------+")
  26.         time.sleep(1)
  27.         pw = int(input("   +--> Enter password: "))
  28.  
  29.  
  30.     else:
  31.           print("+-------------------------------------------+")
  32.           time.sleep(1)
  33.           print("                                     ")
  34.           print("     +-------------------------+     ")
  35.           print("     +--> Unauthorized Access  +     ")
  36.           print("     +-------------------------+     ")
  37.           time.sleep(1)
  38.           continue
  39.        
  40.  
  41.     if pw == password :
  42.           print("+-------------------------------------------+")
  43.           time.sleep(1)
  44.           print("                                ")
  45.           print("                                ")              
  46.           print("       |-----------------------|")
  47.           print("       |--| Authorized Access  |")
  48.           print("       |-----------------------|")
  49.           time.sleep(1)
  50.           break
  51.  
  52.     elif pw == root :
  53.           print("+-------------------------------------------+")
  54.           time.sleep(1)
  55.           print("                                ")
  56.           print("     |-------------------------|")
  57.           print("     | Terminal Access Granted |")
  58.           print("     |-------------------------|")
  59.           print("                                ")
  60.           time.sleep(1)
  61.           break
Add Comment
Please, Sign In to add comment