Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- import itertools
- import string
- f = open("cracked.txt", "a")
- hashed_password0 = 'b0a102adef183c9b127ec37d13ffb5dfe9a21466136c3ce9ff4deba3bb6d8ec34e80379f405ef6a96d3d7bf530eb1869aafa9e44ca7b1124a97237b893edc724'
- salt0 = '12416ca6-e2ab-4728-8614-033c933e918c'
- hashed_password1 = 'b8b7e85004af6358d2f1c99d03740186618499e90f080eeaf710968616b5dc2d50236066614ee8c8f24302ebbd0bc0fe83b5d9c9fa45a1a3587c0946a0298e64'
- salt1 = '60c9cf0f-926a-41e4-a490-ab1e068b2598'
- hashed_password2 = '81e078d6d7e71136f13556b3bdf95cba3874650abaca3ded3cd46fe49767c385feec4c4d92cac62030189b4ecf42b20bdff2950955387550eeb24b304640fb34'
- salt2 = '8e16c770-9af3-42ec-9b8a-6f83c0d3659f'
- hashed_password3 = '207c0361ce0ac57eb4290b23da9bd8bb4fcf64a3e99dead838b209ce87abf2852906a7b3b864363ff34d5599362b539ee008c6225201dc00888e55768ccf7344'
- salt3 = 'b4bf5a65-3bb0-4cb2-a84e-79c72229871c'
- hashed_password4 = '9346b737f27d721e5219f2d3e6f93b03c4348112a856ae286f8d164b1608d2f78879eeceab5a45d376ec88b4a267247799b678acf2b6447a0a0750a342e481a4'
- salt4 = '75be9e81-ce20-4cee-84f5-dfbd7f9e3065'
- hashed_password5 = 'b8ebd56cdf1f95d06b7d89d489a74beaebe35bd77c1d10c47cd7529ebd03293027cbffea90ab6b031cd4c74a2aa900e252678ead8a09e0280f4d975cf5c10734'
- salt5 = '36c0624a-11b5-49d4-b0cf-2a7f5138092c'
- hashed_password6 = 'bdfb54596a6ded4888989d91720a4b45381aeb0fd5e404ce05e11832ad4e6aaabd79b2e2d1f02f84c1e0b0efd6ccdb32e8c851b376e0d16f9be3eb7e67f57804'
- salt6 = '86f1ddb4-51a2-4c71-ac86-9acb438b0b7c'
- hashed_password7 = 'f1056c489a2120c32b03edbc1221a803d49c72b770f70a706cf6e748002d39ad70741ac980593174ab479ca47f20f411f8285d31234d1a82883aaf95618e4134'
- salt7 = 'c0f4b188-3637-46ab-921e-93b07cd0dd9f'
- def crack_stuff(num):
- attempt_list = itertools.product(string.lowercase + string.uppercase + string.digits, repeat=num)
- for attempt in attempt_list:
- joined = ''.join(attempt)
- print joined
- new_hash0 = hashlib.sha512(salt0 + joined).hexdigest()
- new_hash1 = hashlib.sha512(salt1 + joined).hexdigest()
- new_hash2 = hashlib.sha512(salt2 + joined).hexdigest()
- new_hash3 = hashlib.sha512(salt3 + joined).hexdigest()
- new_hash4 = hashlib.sha512(salt4 + joined).hexdigest()
- new_hash5 = hashlib.sha512(salt5 + joined).hexdigest()
- new_hash6 = hashlib.sha512(salt6 + joined).hexdigest()
- new_hash7 = hashlib.sha512(salt7 + joined).hexdigest()
- if new_hash0 == hashed_password0:
- f.write(joined)
- if new_hash1 == hashed_password1:
- f.write(joined)
- if new_hash2 == hashed_password2:
- f.write(joined)
- if new_hash3 == hashed_password3:
- f.write(joined)
- if new_hash4 == hashed_password4:
- f.write(joined)
- if new_hash5 == hashed_password5:
- f.write(joined)
- if new_hash6 == hashed_password6:
- f.write(joined)
- if new_hash7 == hashed_password7:
- f.write(joined)
- if __name__ == '__main__':
- for n in xrange(5, 6):
- if crack_stuff(n):
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement