-
-
Save Gunni/31aa48aafbd103bb7c2d9cda287bbdc4 to your computer and use it in GitHub Desktop.
Check compromised password oneliner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python3 -c 'import getpass ; import hashlib ; p = hashlib.sha1(getpass.getpass("Password to check: ").encode()).hexdigest().upper() ; print(f"Full hash: {p}\ncurl -s https://api.pwnedpasswords.com/range/{p[:5]} | grep {p[5:]} | grep \":\" || echo -n \"not \" ; echo compromised")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment