Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- HASH = "9460370bb0ca1c98a779b1bcc6861c2c";
- with open("C:/User/bohda/Documents/words.txt") as file:
- for line in file:
- line = line.strip()
- command = "echo {} | md5sum".format(line)
- hash = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE).stdout.read()
- hash = str(hash).strip()
- if hash.strip() == HASH:
- print(line)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement