https://haveibeenpwned.com的cli工具

pwnage的Python项目详细描述


p管理

PythonBuild StatusIssuesLicense

基于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文件了解详细信息

致谢

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
AmazonS3查找从S3forJava下载的压缩文件的MIME类型   java如何使用Selenium在<span>中查找具有特定文本的元素   python如何使用OpenIEDemo生成自定义三元组。由stanfordnlp提供的java   java遇到“方法不适用”编译错误   java如何使用Mockito在Looper中运行的验证代码。getMainLooper?   类Java目录错误   java在已知其他泛型信息时使用原始类型   java connect()和disconnect()在哪里实现?   java使用PDF Box库拆分PDF,生成的PDF几乎与源PDF文件大小相同   java PowerMockito返回错误的对象   java如何找到TIBCO集合消息的字节编码?   java Basic音乐播放器下一步和上一步按钮   添加模块描述符时,java没有名为“entityManagerFactory”的bean可用   java为什么我的代码不是线程安全的?   eclipse java。引用项目中的类的lang.NoClassDefFoundError