Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.25 KB | None | 0 0
  1. #!/usr/bin/python
  2. #--------------------------------------------------------
  3. #~Wordpress Hash Cracker
  4. #~By Yassinox.Tn
  5. #~Hacking Is illegal !
  6. #~We love Pentesting
  7. #--------------------------------------------------------
  8. from passlib.hash import phpass
  9. import time
  10. import sys
  11. import threading
  12. #--------------------------------------------------------
  13. class bcolors:
  14.     HEADER = '\033[95m'
  15.     OKBLUE = '\033[94m'
  16.     OKGREEN = '\033[92m'
  17.     WARNING = '\033[93m'
  18.     FAIL = '\033[91m'
  19.     ENDC = '\033[0m'
  20. #--------------------------------------------------------
  21. def logo():
  22.     print bcolors.WARNING+ '''                _
  23.               /`_>
  24.              / /
  25.              |/
  26.          ____|    __
  27.         |    \.-``  )
  28.         |---``\ _.'
  29.      .-`'---``_.'
  30.     (__...--``        White Hat Security Testers
  31.                          YASSINOX.TN
  32. '''
  33. logo()
  34. #--------------------------------------------------------
  35. hash =  raw_input("Hash > ") #~exemple : $P$FDj9XhuS43ooqUPB4EVddWAT5lCWyA1
  36. passl = "passlist.txt" #~change it by wordlist name
  37. threads = 1
  38. try:
  39.     plist = open(passl).readlines()
  40. except:
  41.     print bcolors.FAIL + "| We cant find 1 required list !"
  42. #--------------------------------------------------------
  43. def crack(password):
  44.     hashed = phpass.verify(password, hash)
  45.     hashedpass = str(hashed) + ":" + str(password)
  46.     if hashedpass == "True:" + password :
  47.         print bcolors.OKGREEN + "+---------------------------------------+"
  48.         print bcolors.OKGREEN + "| Operation Completed !"
  49.         print bcolors.OKGREEN + "| HASH > " + " " + hash
  50.         print bcolors.OKGREEN + "| password >" + " " + password
  51.         print bcolors.OKGREEN + "+---------------------------------------+"
  52.         sys.exit(1)
  53. #--------------------------------------------------------
  54. print bcolors.OKBLUE + "+---------------------------------------+"
  55. print bcolors.OKBLUE + "| Cracking Please Wait ..."
  56. print bcolors.OKBLUE + "| Loaded %s passwords !" % len(plist)
  57. print bcolors.OKBLUE + "+---------------------------------------+"
  58. for password in plist :
  59.     password = password.rstrip()
  60.     for i in xrange(threads):
  61.         t = threading.Thread(target=crack(password))
  62.         t.start()
  63. #--------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement