Skip to main content

Pwnage

Python Build Status Issues License

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

Table of Contents

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

pip install pwnage

Usage

pwnage --help
usage: pwnage [-h] [-a <account>] [-g] [-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
  -g, --generate        generate a random password that has not been
                        compromised
  -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

pwnage --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

pwnage --password Password1234
This password has been pwned 3621 times!

Trying a better password

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

Getting prompted for a password

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

Generating a random password that gets checked against HIBP to make sure it has never been compromised

pwnage --generate
V@0l4uMOqXgtCidqU!'gqwlmfO0igcuM

License

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

Acknowledgments

Metadata

Release files for pwnage 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pwnage 1.0.0
File Size Uploaded Provenance
pwnage-1.0.0.tar.gz 5.1 kB Without provenance Details

Release files / pwnage-1.0.0.tar.gz

Download URL pwnage-1.0.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
afe0696461a664bf6929832b4b1c460dce760cf6bb3e07461d971b0a99e96606
BLAKE2b-256 checksum
How to use checksums
3688dea2b42e9bd89716fc5dedb87433ebfe735bd6be68b07e32071a24481154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Security for pwnage 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page