Guest User

Untitled

a guest
Jan 18th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. sort -u passwords.txt | while read -r password
  2. do
  3. hash="$(printf '%s' "$password" |
  4. sha1sum |
  5. cut -d' ' -f1 |
  6. tr 'a-f' 'A-F')"
  7. printf '%sn' "$hash" >> hashes.txt
  8. printf '%st%sn' "$hash" "$password" >> passwords-with-hashes.txt
  9. done
  10.  
  11. 7z e -so pwned-passwords-sha1-ordered-by-hash-v*.7z |
  12. cut -c 1-40 |
  13. grep -Fxf hashes.txt |
  14. tee matches.txt
  15.  
  16. grep -Ff matches.txt passwords-with-hashes.txt | cut -f2
  17.  
  18. shred --remove hashes.txt matches.txt passwords.txt passwords-with-hashes.txt
Add Comment
Please, Sign In to add comment