x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/password/tools/changeme.md
View on GitHub# changeme
- **Category**: Password Attacks / Default Credential Scanning
- **Risk Level**: 🟡 Medium
---
## 描述
扫描网络服务中的默认和已知凭据。使用内置的默认凭据数据库,涵盖常见设备、设备和服务。支持 HTTP basic/form 认证、SSH、SNMP、MSSQL、MySQL、PostgreSQL、MongoDB、FTP 等。适用于快速识别网络中仍使用出厂默认凭据的设备。
## 安装
```bash
sudo apt install changeme
# 或通过 pip 安装
pip3 install changeme
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `target` | 目标 IP、CIDR 范围或包含目标的文件 |
| `-a`, `--all` | 扫描所有支持的协议 |
| `-c <category>` | 按类别过滤 |
| `--protocols <proto>` | 逗号分隔的协议列表(默认:http) |
| `-n <cred_name>` | 将测试范围缩小到指定凭据名称 |
| `--threads <threads>` | 线程数(默认 10) |
| `--timeout <secs>` | 请求超时时间(秒,默认:10) |
| `-p <url>` | HTTP(S) 代理 |
| `-f`, `--fingerprint` | 仅指纹识别目标,不检查凭据 |
| `--dryrun` | 打印要扫描的 URL 但不执行扫描 |
| `--ssl` | 强制 SSL,出错时回退到非 SSL |
| `-o <file>` | 输出结果文件(扩展名决定格式) |
| `--oa` | 以 csv、html 和 json 格式输出结果 |
| `-r`, `--resume` | 恢复上次扫描 |
| `-q <query>` | Shodan 搜索查询 |
| `-k <key>` | Shodan API 密钥 |
| `--dump` | 打印所有已加载的凭据 |
| `-l <file>` | 将日志写入文件 |
| `-dl <ms>` | 请求间延迟(毫秒),避免 429 状态码(默认:500) |
| `-d`, `--debug` | 调试输出 |
## 常用命令
```bash
# 扫描子网中所有默认凭据
changeme --all 192.168.1.0/24
# 仅扫描指定协议
changeme --protocols ssh,ftp 192.168.1.0/24
# 扫描单个目标的 HTTP 默认凭据
changeme --protocols http 192.168.1.100
# 转储整个默认凭据数据库
changeme --dump
# 使用代理扫描(配合 Burp Suite)
changeme --protocols http --proxy http://127.0.0.1:8080 192.168.1.0/24
# 限速扫描以降低被检测风险
changeme --all --threads 2 --delay 3 192.168.1.0/24
# 恢复中断的扫描
changeme --resume
# 扫描特定命名凭据集
changeme --name tomcat 192.168.1.0/24
# 从文件扫描目标并启用详细输出
changeme --all --verbose --threads 5 /tmp/targets.txt
```
## 注意事项
1. 在渗透测试早期运行 changeme——默认凭据是最容易的突破口之一,且经常被忽略。
2. 使用 `--dump` 在扫描前查看数据库中所有已知凭据,以了解覆盖范围。
3. 配合 `nmap` 服务检测使用:先用 `nmap -sV` 扫描网络,再用 changeme 针对发现的服务进行测试。
4. 基于 HTTP 表单的认证可能需要手动调整(如果登录页面结构与预期模式不同)。
5. 默认凭据发现通常评定为 Medium 严重程度,但如果该设备提供基础设施的管理员访问权限,可能升级为 Critical。
---
## 官方参考
- [changeme (GitHub)](https://github.com/ztgrace/changeme)
- [Kali changeme](https://www.kali.org/tools/changeme/)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |