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/cewl.md
View on GitHub# CeWL
- **Category**: Password Attacks / Custom Wordlist Generation
- **Risk Level**: 🟢 Low
---
## 描述
网页内容爬取字典生成工具,从目标网站抓取文本内容生成定制化密码字典。由于人们习惯用与工作相关的词汇设置密码,目标网站上的词汇往往比通用字典更有针对性。
## 安装
```bash
sudo apt install cewl
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-d N` | 爬取深度(默认 2)|
| `-m N` | 最小词长(默认 3)|
| `-x N` | 最大词长(默认不限)|
| `-w FILE` | 将输出写入文件 |
| `-a` / `--meta` | 包含元数据 |
| `--email` | 包含邮件地址 |
| `--lowercase` | 将所有解析的单词转为小写 |
| `--with-numbers` | 接受包含数字的单词(不仅限于纯字母) |
| `--auth_type` | 认证类型(digest 或 basic) |
| `--auth_user` | 认证用户名 |
| `--auth_pass` | 认证密码 |
## 常用命令
```bash
# 基础爬取,最小 6 位单词
cewl http://target.com -m 6 -w /tmp/target_wordlist.txt
# 爬取深度 3,提取邮件
cewl http://target.com -d 3 -m 5 --email -w /tmp/wordlist.txt
# 爬取 HTTPS
cewl https://target.com -m 6 -w /tmp/wordlist.txt
# 加数字变体(结合 john 规则)
cewl http://target.com -m 6 -w /tmp/base.txt
john --wordlist=/tmp/base.txt --rules --stdout > /tmp/expanded.txt
# 或使用 hashcat 规则扩展:
hashcat --stdout /tmp/base.txt -r /usr/share/hashcat/rules/best64.rule > /tmp/expanded.txt
# 爬取需要认证的页面
cewl http://target.com --auth_user admin --auth_pass password -m 6 -w /tmp/wordlist.txt
```
## 注意事项
1. 使用 `-d 3`(深度 3)爬取更多页面——深度越大,采集词汇越多。
2. 使用 `cat` 将 cewl 输出与已有字典合并:`cat cewl_output.txt rockyou.txt | sort -u > combined.txt`。
3. 使用 `-m 6` 过滤掉极短的词——密码中很少出现。
4. `--email` 标志除词汇外还会采集邮件地址——对用户名发现很有用。
5. 生成自定义字典后,使用 hashcat 规则变异(`-r rules/best64.rule`)进一步扩展。
---
## 官方参考
- [CeWL (GitHub)](https://github.com/digininja/CeWL)
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 |