Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import crypt
- import os
- import sys
- import random
- import string
- from hashlib import *
- from base64 import *
- hac = ""
- with open("500_passwords.txt","r") as f:
- listPwd = f.read().splitlines()
- for testPwd in listPwd:
- hashPwd = "khoama1000:$6$RNA4tEKU$leYP6L7pGF1cZ3AhT4KSzw/aCjxStrkBn5.jKcv7OtDjG0htEBbHzcrogrLCb05wJ3x1oOVaRwFXguKm8fUST.:17820:0:99999:7:::"
- salt_SHA512 = []
- hash_SHA512 = []
- if "$6$" in hashPwd:
- temp1 = hashPwd.split(":")
- temp1 = temp1[1]
- salt_SHA512.append(temp1[:11])
- hash_SHA512.append(temp1)
- h = crypt.crypt(testPwd, salt_SHA512[0])
- if h in hashPwd:
- print("Password is : "+(testPwd))
- hac = h
- sys.exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement