Skip to content
Python CLI tool for https://haveibeenpwned.com
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.md
pwnage.py
requirements.txt

README.md

Pwnage

Python Build Status Issues License

Python based command line tool for checking the Have I Been Pwned database.

Table of Contents

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

You'll need to have Python installed in order to run Pwnage. Start by downloading and installing the latest version of Python 3.

Note: Pwnage has not been tested with Python 2 and will probably not work without changing some things.

Installation

Download the latest version from GitHub using Git.

git clone https://github.com/zloether/pwnage.git

This will create a directory called Pwnage and all the code will be in it.

Switch to the Pwnage directory:

cd Pwnage

Install the required packages:

pip install -r requirements.txt

Usage

python pwnage.py -h
usage: pwnage.py [-h] [-a <account>] [-p <password>] [-r] [-v]

Checks passwords against the Have I Been Pwned database
https://haveibeenpwned.com

optional arguments:
  -h, --help            show this help message and exit
  -a <account>, --account <account>
                        account to check against database
  -p <password>, --password <password>
                        password to check against database
  -r, --prompt          prompt for pass to check against database
  -v, --verbose         verbose output, useful for debugging issues

optional arguments '-p/--password' and '-r/--prompt' cannot be used together

Checking an account

python pwnage.py --account Zoidberg@freemail.web
Zoidberg@freemail.web has been pwned in these breaches:
Unverified: Collection1 on 2019-01-07. Details leaked: Email addresses, Passwords
Verified: VK on 2012-01-01. Details leaked: Email addresses, Names, Passwords, Phone numbers

Trying a bad password

python pwnage.py --password Password1234
This password has been pwned 3621 times!

Trying a better password

python pwnage.py --password "djf;hjdhfjk3;j4r436@@!"
This password has not been pwned yet.

Getting prompted for a password

python pwnage.py --prompt
Password to check:
This password has been pwned 21961 times!

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

You can’t perform that action at this time.