A command line tool to check if a single (or multiple) email addresses have been compromised.
Switch branches/tags
Nothing to show
Clone or download
Alexan Mardigian Alexan Mardigian
Alexan Mardigian and Alexan Mardigian Updated __version__ to 1.1.1. The changes to this script reflect the …
…changes to the API. Added HEADERS constant for HTTP request header to fix the HTTP 403 error. Added 1.6 second sleep delay to fix the HTTP 429 errors.
Latest commit 1f86aaa Sep 12, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Fixed a grammar error in README.md. Jul 9, 2015
__init__.py Added __init__.py and checkpwnedemails.py. This is the first commit. Feb 18, 2015



This python script will check if a single email address, or a text file listing several email addresses, has been compromised in a data breach (pwned). This script uses the haveibeenpwned API to compare the email address(es), provided by the user, to the haveibeenpwned database to check if they have been pwned or not.

To check a single email address:

python checkpwnedemails.py -s email_address

To check multiple email address:

python checkpwnedemails.py -i text_file_listing_email_addresses

By default, the results will be printed to standard output. However, if the -o option is provided, the output data will be printed to a tab delimited textfile for later use.

For more options:

python checkpwnedemails.py -h