https://haveibeenpwned.com的cli工具
pwnage的Python项目详细描述
p管理
基于python的命令行工具,用于检查Have I Been Pwned数据库。
目录
先决条件
您需要安装python才能运行Pwnage
。首先下载并安装最新版本的Python 3。
Note:
Pwnage
has not been tested with Python 2 and will probably not work without changing some things.
安装
pip install pwnage
用法
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
检查帐户
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
尝试错误的密码
pwnage --password Password1234
This password has been pwned 3621 times!
尝试使用更好的密码
pwnage --password "djf;hjdhfjk3;j4r436@@!"
This password has not been pwned yet.
提示输入密码
pwnage --prompt
Password to check:
This password has been pwned 21961 times!
生成一个随机密码,该密码将根据HIBP进行检查,以确保它从未被泄露过
pwnage --generate
V@0l4uMOqXgtCidqU!'gqwlmfO0igcuM
许可证
这个项目是在麻省理工学院的许可下授权的-请参见LICENSE文件了解详细信息