Python scripts to bulk scan haveibeenpwned.com (HIBP) for lists of email addresses or passwords
Email address scanning requires HIBP API key from https://haveibeenpwned.com/API/Key and is rate-limited (1.6 sec per request) per HIBP API restrictions. API key should be stored in the environment variable HIBPKEY
.
Output is normally provided as the programs run. Optionall, the --table
parameter can be added
to the command line which results in output only at the end of the run as lists of "found" and
"not found" entries.
Lists of passwords and email addresses are sorted and duplicate entries are removed (across all files) before processing to improve speed and reduce load on HIBP resources.
Usage example:
pwnchk emails.txt
Password scanning does not require an API key and uses https://github.com/lionheart/pwnedpasswords for access.
Usage example:
passchk pass.txt