x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/information-gathering/tools/h8mail.md
View on GitHub# h8mail
- **Category**: Information Gathering / Breach Intelligence
- **Risk Level**: 🟢 Low
---
## 描述
h8mail 是一款邮箱 OSINT 和泄露数据搜索工具。它在多个泄露数据库和公开粘贴站点中搜索邮箱地址及关联的泄露凭据。支持 HaveIBeenPwned、Hunter.io、Snusbase 和本地泄露数据库。在 OSINT 阶段用于评估凭据暴露情况。使用 Python 编写。
## 安装
```bash
sudo apt install h8mail
h8mail --help
# 或通过 pip 安装
pip3 install h8mail
# 生成示例配置文件
h8mail --gen-config
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-t <target>` | 目标邮箱,字符串输入或文件 |
| `-q` | 执行自定义查询(支持 username、password、ip、hash、domain) |
| `-c <file>` | API 密钥配置文件路径 |
| `-o <file>` | 写入 CSV 输出的文件 |
| `-bc <path>` | breachcompilation 种子文件夹路径 |
| `-sk` | 跳过 Scylla 和 HunterIO 检查,适合本地扫描 |
| `-k <K=V,K=V>` | 以逗号分隔的 key=value 形式内联传递配置选项(例如 `"hibp=KEY,emailrep=KEY"`) |
| `-j <file>` | 写入 JSON 输出的文件 |
| `-lb <file>` | 本地明文泄露数据,用于扫描目标 |
| `-gz <file>` | Gzip 压缩的泄露文件 |
| `-sf` | 泄露文件单文件模式 |
| `-ch [LIMIT]`, `--chase [LIMIT]` | 从 hunter.io 追踪关联邮箱并加入目标列表。可选的 `CHASE_LIMIT` 设置每个目标追踪的邮箱数量(需要 hunter.io 密钥,除非与 `--power-chase` 一起使用) |
| `--power-chase` | 从所有 API 服务激进追踪关联邮箱(与 `--chase` 一起使用) |
| `--hide` | 仅显示找到密码的前 4 个字符(适合演示/截图) |
| `--gen-config`, `-g` | 在当前目录生成配置文件模板(`h8mail_config.ini`)并退出(会覆盖任何现有文件) |
| `--debug` | 启用调试输出 |
| `--loose` | 禁用邮箱模式识别以允许宽松搜索 |
| `-u <url>` | 用于邮箱解析的 URL 字符串输入或文件 |
## 常用命令
### 场景一:基本邮箱查询
```bash
# 搜索单个邮箱
h8mail -t target@example.com
# 搜索多个邮箱
h8mail -t user1@example.com,user2@example.com
# 从文件搜索邮箱(每行一个)
h8mail -t targets.txt
```
### 场景二:使用 API 密钥
```bash
# 生成示例配置文件
h8mail --gen-config
# 使用配置文件中的 API 密钥搜索
h8mail -t target@example.com -c h8mail_config.ini
```
### 场景三:本地泄露数据
```bash
# 搜索本地泄露数据合集文件夹
h8mail -t target@example.com -bc /path/to/breach-compilation
# 搜索本地泄露文本文件
h8mail -t target@example.com -lb breach_dump.txt
# 跳过在线服务——仅本地搜索
h8mail -t target@example.com -bc /path/to/breach-compilation -sk
```
### 场景四:输出与报告
```bash
# 保存结果到文本文件
h8mail -t target@example.com -o results.txt
# 以 JSON 格式保存结果
h8mail -t target@example.com -j results.json
# 配合配置文件和 JSON 输出
h8mail -t targets.txt -c h8mail_config.ini -j report.json
```
### 场景五:宽松匹配
```bash
# 使用宽松匹配在泄露数据中查找部分邮箱匹配
h8mail -t target@example.com -lb breach_dump.txt --loose
```
## 注意事项
1. 使用 `h8mail --gen-config` 生成配置文件,添加 HaveIBeenPwned、Hunter.io、Snusbase 或 LeakLookup 的 API 密钥以获取更多结果。
2. HaveIBeenPwned v3 API 需要付费密钥。Emailrep.io 等免费替代服务可作为补充。
3. 本地泄露数据合集搜索(`-bc`)要求数据按标准 Breach Compilation 文件夹结构组织。
4. 在隔离网络环境中只有本地泄露数据时,使用 `-sk` 完全跳过在线服务。
5. 与 Sherlock 组合使用:先用 Sherlock 发现用户名,再用 h8mail 检查关联邮箱地址的泄露情况。
---
## 官方参考
- [h8mail(GitHub)](https://github.com/khast3x/h8mail)
- [Kali h8mail](https://www.kali.org/tools/h8mail/)
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 |