Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.86 KB | None | 0 0
  1. import hashlib
  2. import itertools
  3. import string
  4.  
  5. f = open("cracked.txt", "a")
  6.  
  7. hashed_password0 = 'b0a102adef183c9b127ec37d13ffb5dfe9a21466136c3ce9ff4deba3bb6d8ec34e80379f405ef6a96d3d7bf530eb1869aafa9e44ca7b1124a97237b893edc724'
  8. salt0 = '12416ca6-e2ab-4728-8614-033c933e918c'
  9.  
  10. hashed_password1 = 'b8b7e85004af6358d2f1c99d03740186618499e90f080eeaf710968616b5dc2d50236066614ee8c8f24302ebbd0bc0fe83b5d9c9fa45a1a3587c0946a0298e64'
  11. salt1 = '60c9cf0f-926a-41e4-a490-ab1e068b2598'
  12.  
  13. hashed_password2 = '81e078d6d7e71136f13556b3bdf95cba3874650abaca3ded3cd46fe49767c385feec4c4d92cac62030189b4ecf42b20bdff2950955387550eeb24b304640fb34'
  14. salt2 = '8e16c770-9af3-42ec-9b8a-6f83c0d3659f'
  15.  
  16. hashed_password3 = '207c0361ce0ac57eb4290b23da9bd8bb4fcf64a3e99dead838b209ce87abf2852906a7b3b864363ff34d5599362b539ee008c6225201dc00888e55768ccf7344'
  17. salt3 = 'b4bf5a65-3bb0-4cb2-a84e-79c72229871c'
  18.  
  19. hashed_password4 = '9346b737f27d721e5219f2d3e6f93b03c4348112a856ae286f8d164b1608d2f78879eeceab5a45d376ec88b4a267247799b678acf2b6447a0a0750a342e481a4'
  20. salt4 = '75be9e81-ce20-4cee-84f5-dfbd7f9e3065'
  21.  
  22. hashed_password5 = 'b8ebd56cdf1f95d06b7d89d489a74beaebe35bd77c1d10c47cd7529ebd03293027cbffea90ab6b031cd4c74a2aa900e252678ead8a09e0280f4d975cf5c10734'
  23. salt5 = '36c0624a-11b5-49d4-b0cf-2a7f5138092c'
  24.  
  25. hashed_password6 = 'bdfb54596a6ded4888989d91720a4b45381aeb0fd5e404ce05e11832ad4e6aaabd79b2e2d1f02f84c1e0b0efd6ccdb32e8c851b376e0d16f9be3eb7e67f57804'
  26. salt6 = '86f1ddb4-51a2-4c71-ac86-9acb438b0b7c'
  27.  
  28. hashed_password7 = 'f1056c489a2120c32b03edbc1221a803d49c72b770f70a706cf6e748002d39ad70741ac980593174ab479ca47f20f411f8285d31234d1a82883aaf95618e4134'
  29. salt7 = 'c0f4b188-3637-46ab-921e-93b07cd0dd9f'
  30.  
  31. def crack_stuff(num):  
  32.     attempt_list = itertools.product(string.lowercase + string.uppercase + string.digits, repeat=num)
  33.     for attempt in attempt_list:
  34.         joined = ''.join(attempt)  
  35.  
  36.         print joined           
  37.        
  38.         new_hash0 = hashlib.sha512(salt0 + joined).hexdigest()
  39.         new_hash1 = hashlib.sha512(salt1 + joined).hexdigest()
  40.         new_hash2 = hashlib.sha512(salt2 + joined).hexdigest()
  41.         new_hash3 = hashlib.sha512(salt3 + joined).hexdigest()
  42.         new_hash4 = hashlib.sha512(salt4 + joined).hexdigest()
  43.         new_hash5 = hashlib.sha512(salt5 + joined).hexdigest()
  44.         new_hash6 = hashlib.sha512(salt6 + joined).hexdigest()
  45.         new_hash7 = hashlib.sha512(salt7 + joined).hexdigest()     
  46.  
  47.         if new_hash0 == hashed_password0:
  48.             f.write(joined)
  49.            
  50.         if new_hash1 == hashed_password1:
  51.             f.write(joined)
  52.  
  53.         if new_hash2 == hashed_password2:
  54.             f.write(joined)
  55.  
  56.         if new_hash3 == hashed_password3:
  57.             f.write(joined)
  58.  
  59.         if new_hash4 == hashed_password4:
  60.             f.write(joined)
  61.  
  62.         if new_hash5 == hashed_password5:
  63.             f.write(joined)
  64.  
  65.         if new_hash6 == hashed_password6:
  66.             f.write(joined)
  67.  
  68.         if new_hash7 == hashed_password7:
  69.             f.write(joined)
  70.  
  71. if __name__ == '__main__'
  72.     for n in xrange(5, 6):     
  73.         if crack_stuff(n):
  74.             break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement