Giter VIP home page Giter VIP logo

checkpwnedemails's Introduction

checkpwnedemails

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.

Dependencies

To run this script you will need to have the requests library installed. Also, you will need pip to install the requests library. pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4.

To install requests, run the following command: pip install requests

Or if you're using Python 3:

pip3 install requests

API Key

As of the HaveIBeenPwned v3 update, you will need an API key to run checkpwnedemails.py. You can get one here.

Once you have acquired an API key, make a new text file and put your API key in there. Make sure this file has proper access permissions and do not share it. checkpwnedemails.py will need to know the path of this file. Use the -a switch to specify the file path. Refer to the Usage section for examples.

Usage

To check a single email address:

python checkpwnedemails.py -a path_to_API_key_file -s email_address

To check multiple email address:

python checkpwnedemails.py -a path_to_API_key_filey -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

checkpwnedemails's People

Contributors

techno-hwizrdry avatar ejaramilla avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.