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
#!/usr/bin/python | |
from getpass import getpass | |
import hashlib | |
import requests | |
import sys | |
import re | |
passd = getpass('Gimme your password: ') | |
hash = hashlib.sha1(passd).hexdigest().upper() | |
res = requests.get('https://api.pwnedpasswords.com/range/'+hash[0:5]) |