Advertisement
Guest User

Untitled

a guest
Sep 24th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import os
  2.  
  3. HASH = "9460370bb0ca1c98a779b1bcc6861c2c";
  4.  
  5. with open("C:/User/bohda/Documents/words.txt") as file:
  6. for line in file:
  7. line = line.strip()
  8. command = "echo {} | md5sum".format(line)
  9. hash = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE).stdout.read()
  10. hash = str(hash).strip()
  11.  
  12. if hash.strip() == HASH:
  13. print(line)
  14. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement