rauftimuri/pwanalyzer

GitHub: alexandretimuri/pwanalyzer

一款命令行密码强度分析工具,通过熵值计算、字典比对和弱模式检测来评估密码安全性并估算破解时间。

Stars: 1 | Forks: 0

# pwanalyzer 一款用于安全意识和渗透测试报告的 CLI 密码强度分析工具。 ## 截图 ![截图1](https://static.pigsec.cn/wp-content/uploads/repos/cas/3e/3e3324a4a3a91add7fee12238059cfc29f83a3bee32b12941d5ecddf231a2833.png) ![截图2](https://static.pigsec.cn/wp-content/uploads/repos/cas/43/434e8f0d96f56646972c3fd0d11bed60c907d99254248f96e61bebda1f79ee1a.png) ![截图3](https://static.pigsec.cn/wp-content/uploads/repos/cas/d8/d81dd0b0bafd1681e4aa0276e1cbcd2e5d3e3f43912abbef049f207f22da73e5.png) ## 截图 **强密码:** ![强密码](https://raw.githubusercontent.com/rauftimuri/pwanalyzer/main/screenshots/strong.png) **弱密码:** ![弱密码](https://raw.githubusercontent.com/rauftimuri/pwanalyzer/main/screenshots/weak.png) 计算熵值,与常见密码字典进行核对,检测弱 模式,并估算破解时间。 ## 功能特性 - 暴力破解和香农熵计算 - 字符集/复杂性检测 - 常见密码列表检查(rockyou.txt 等) - 弱模式检测(序列、重复、leetspeak、年份) - 破解时间估算 - 带强度条的彩色终端输出 - 支持单一、批量(`--file`)和隐藏输入模式 ## 环境要求 - Python 3.6+ - 一份密码字典(Kali Linux 自带 rockyou.txt) ## 安装 ``` git clone https://github.com/rauftimuri/pwanalyzer.git cd pwanalyzer chmod +x pwanalyzer.py # 在 Kali 上,如有需要请解压 rockyou: sudo gunzip -k /usr/share/wordlists/rockyou.txt.gz ``` ## 用法 ``` # Hidden input(推荐) ./pwanalyzer.py # Direct(在 shell history 中可见 — 仅用于测试) ./pwanalyzer.py -p "Tr0ub4dor&3" # Batch analysis ./pwanalyzer.py -f passwords.txt # Custom wordlist ./pwanalyzer.py -p "test123" -w /path/to/wordlist.txt # 跳过 common-list 检查 ./pwanalyzer.py -p "hunter2" --no-wordlist ``` ## 免责声明 仅供防御性安全、教育和授权测试使用。仅分析您拥有或获得明确测试 权限的密码。 ## 许可证 MIT
标签:Python, 字典检查, 密码审计, 密码强度分析, 文档结构分析, 无后门, 熵值计算, 逆向工具