Guest User

Untitled

a guest
Jul 28th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. import crypt # IMPORTAMOS LA LIBRERIA DE "CRYPT"
  2.  
  3. max_attempts = 6 ## ADD ITEMS <, >
  4. attempt = 0
  5.  
  6. try: #// Iniciamos ciclo "while"
  7.  
  8.  
  9. while attempt < max_attempts:
  10.  
  11. uname = input('[ sudo ] USERNAME: ') #// Introducimos nuestro nombre de usuario @ferzac.root
  12. password = input('''[ sudo ] PASSWORD FOR ADMIN ( credentials = [ True]
  13.  
  14. [ OK ] ACCESS ...
  15. [ OK ] ...
  16. [ OK ] SCANING COMPUTER...
  17. [ OK ] ATTACKING OPEN: [D0NE]
  18. [ OK ] ACCESS GARANTED
  19. [ OK ] YOU HAVE ACCCES COMPUTER SCANING... [ DATA ]
  20.  
  21. [ADD_I ] ENTER CREDENTIALS: ''') #// Verificando el usuario $_
  22.  
  23. if uname == 'admin@ferzac.hack' and password == '@ferzac.hack':
  24. for X in range(0, 2):
  25. print("")
  26.  
  27. print(" || || ||||||||| |||||||| ||| || ")
  28. print("|| || || || || ||| ||| ")
  29. print("|||||||| ||||||||| || ||||||| ")
  30. print("|||| || || || || || ||| || ")
  31. print("|| || || || ||||||| ||| |||| @ferchozac_ANP ")
  32.  
  33. for key in range(0, 3):
  34. print("")
  35.  
  36. #// Introducimos las intrucciones deseadas
  37.  
  38. name = input("Cual es tu nombre?: ")
  39. sentence = input("Escribe el texto a cifrar: ")
  40.  
  41. password_option = crypt.crypt(sentence,"def")
  42. print("La palabra cifrada es:\n"+ password_option)
  43. break
  44. else:
  45. attempt =+1
  46. if attempt == max_attempts:
  47. raise RuntimeError("\nYou've reached the maximum number of attempts allowed.")
  48.  
  49. else:
  50. print('Wrong credentials.\n Try again or press <ctrl+c> to exit.\n')
  51. continue
  52. except RuntimeError as e:
  53. print("Goodbye")
Add Comment
Please, Sign In to add comment