Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sort -u passwords.txt | while read -r password
- do
- hash="$(printf '%s' "$password" |
- sha1sum |
- cut -d' ' -f1 |
- tr 'a-f' 'A-F')"
- printf '%sn' "$hash" >> hashes.txt
- printf '%st%sn' "$hash" "$password" >> passwords-with-hashes.txt
- done
- 7z e -so pwned-passwords-sha1-ordered-by-hash-v*.7z |
- cut -c 1-40 |
- grep -Fxf hashes.txt |
- tee matches.txt
- grep -Ff matches.txt passwords-with-hashes.txt | cut -f2
- shred --remove hashes.txt matches.txt passwords.txt passwords-with-hashes.txt
Add Comment
Please, Sign In to add comment