Skip to content

x-glacier/kali-pentest / kali-pentest-zh

kali-pentest-zh

Flagged

通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。

FileKindSize
SKILL.mdskill md15.6 KB
references/cloud-native/README.mdmarkdown4.2 KB
references/cloud-native/tools/azurehound.mdmarkdown4.0 KB
references/cloud-native/tools/docker-bench-security.mdmarkdown1.9 KB
references/cloud-native/tools/kube-bench.mdmarkdown1.7 KB
references/cloud-native/tools/kubescape.mdmarkdown1.7 KB
references/cloud-native/tools/pacu.mdmarkdown3.0 KB
references/cloud-native/tools/peirates.mdmarkdown6.4 KB
references/cloud-native/tools/prowler.mdmarkdown1.5 KB
references/cloud-native/tools/scoutsuite.mdmarkdown1.2 KB
references/environment/README.mdmarkdown1.4 KB
references/environment/docker-mode-networking.mdmarkdown2.2 KB
references/environment/docker-mode-persistent-container.mdmarkdown3.8 KB
references/environment/docker-mode.mdmarkdown2.0 KB
references/environment/local-mode.mdmarkdown946 B
references/environment/server-mode.mdmarkdown4.1 KB
references/environment/state-files.mdmarkdown2.3 KB
references/exploitation/README.mdmarkdown9.6 KB
references/exploitation/tools/chisel.mdmarkdown3.2 KB
references/exploitation/tools/coercer.mdmarkdown2.5 KB
references/exploitation/tools/dns2tcp.mdmarkdown3.8 KB
references/exploitation/tools/evil-winrm.mdmarkdown2.9 KB
references/exploitation/tools/evilginx2.mdmarkdown2.2 KB
references/exploitation/tools/getsploit.mdmarkdown2.0 KB
references/exploitation/tools/gophish.mdmarkdown6.1 KB
references/exploitation/tools/impacket.mdmarkdown10.9 KB
references/exploitation/tools/iodine.mdmarkdown3.5 KB
references/exploitation/tools/ligolo-ng.mdmarkdown3.3 KB
references/exploitation/tools/metasploit.mdmarkdown11.0 KB
references/exploitation/tools/mitm6.mdmarkdown2.6 KB
references/exploitation/tools/msfconsole.mdmarkdown3.9 KB
references/exploitation/tools/msfvenom.mdmarkdown8.5 KB
references/exploitation/tools/mssqlpwner.mdmarkdown2.5 KB
references/exploitation/tools/netcat.mdmarkdown4.4 KB
references/exploitation/tools/odat.mdmarkdown3.0 KB
references/exploitation/tools/proxytunnel.mdmarkdown2.2 KB
references/exploitation/tools/routersploit.mdmarkdown2.9 KB
references/exploitation/tools/searchsploit.mdmarkdown4.7 KB
references/exploitation/tools/setoolkit.mdmarkdown1015 B
references/exploitation/tools/smbclient.mdmarkdown2.8 KB
references/exploitation/tools/socat.mdmarkdown2.8 KB
references/exploitation/tools/veil.mdmarkdown2.9 KB
references/forensics/README.mdmarkdown8.8 KB
references/forensics/tools/bulk-extractor.mdmarkdown4.5 KB
references/forensics/tools/chainsaw.mdmarkdown2.6 KB
references/forensics/tools/chkrootkit.mdmarkdown2.6 KB
references/forensics/tools/dc3dd.mdmarkdown2.9 KB
references/forensics/tools/dcfldd.mdmarkdown3.2 KB
references/forensics/tools/ddrescue.mdmarkdown3.6 KB
references/forensics/tools/exiftool.mdmarkdown2.5 KB
references/forensics/tools/foremost.mdmarkdown2.4 KB
references/forensics/tools/hashdeep.mdmarkdown3.5 KB
references/forensics/tools/plaso.mdmarkdown3.7 KB
references/forensics/tools/regripper.mdmarkdown3.4 KB
references/forensics/tools/rkhunter.mdmarkdown3.4 KB
references/forensics/tools/scalpel.mdmarkdown2.6 KB
references/forensics/tools/sleuthkit.mdmarkdown4.0 KB
references/forensics/tools/ssdeep.mdmarkdown3.1 KB
references/forensics/tools/steghide.mdmarkdown2.8 KB
references/forensics/tools/stegseek.mdmarkdown2.5 KB
references/forensics/tools/tcpdump.mdmarkdown2.8 KB
references/forensics/tools/tcpflow.mdmarkdown3.4 KB
references/forensics/tools/testdisk.mdmarkdown3.0 KB
references/forensics/tools/tshark.mdmarkdown3.0 KB
references/forensics/tools/volatility.mdmarkdown5.0 KB
references/forensics/tools/yara.mdmarkdown3.3 KB
references/information-gathering/README.mdmarkdown15.6 KB
references/information-gathering/tools/altdns.mdmarkdown1.9 KB
references/information-gathering/tools/amass.mdmarkdown9.1 KB
references/information-gathering/tools/arp-scan.mdmarkdown1.9 KB
references/information-gathering/tools/assetfinder.mdmarkdown1.9 KB
references/information-gathering/tools/autorecon.mdmarkdown2.9 KB
references/information-gathering/tools/certgraph.mdmarkdown3.3 KB
references/information-gathering/tools/cloud-enum.mdmarkdown2.1 KB
references/information-gathering/tools/cloudbrute.mdmarkdown2.1 KB
references/information-gathering/tools/dig.mdmarkdown2.3 KB
references/information-gathering/tools/dmitry.mdmarkdown2.0 KB
references/information-gathering/tools/dnsenum.mdmarkdown1.7 KB
references/information-gathering/tools/dnsgen.mdmarkdown1.5 KB
references/information-gathering/tools/dnsmap.mdmarkdown1.8 KB
references/information-gathering/tools/dnsrecon.mdmarkdown2.7 KB
references/information-gathering/tools/dnstwist.mdmarkdown3.0 KB
references/information-gathering/tools/dnsx.mdmarkdown2.8 KB
references/information-gathering/tools/eyewitness.mdmarkdown2.4 KB
references/information-gathering/tools/fierce.mdmarkdown2.5 KB
references/information-gathering/tools/finalrecon.mdmarkdown2.4 KB
references/information-gathering/tools/findomain.mdmarkdown2.5 KB
references/information-gathering/tools/fping.mdmarkdown2.3 KB
references/information-gathering/tools/getallurls.mdmarkdown2.4 KB
references/information-gathering/tools/gowitness.mdmarkdown4.8 KB
references/information-gathering/tools/h8mail.mdmarkdown3.9 KB
references/information-gathering/tools/hakrawler.mdmarkdown2.3 KB
references/information-gathering/tools/hosthunter.mdmarkdown2.6 KB
references/information-gathering/tools/httprobe.mdmarkdown2.1 KB
references/information-gathering/tools/httpx.mdmarkdown4.6 KB
references/information-gathering/tools/ldeep.mdmarkdown4.9 KB
references/information-gathering/tools/masscan.mdmarkdown3.8 KB
references/information-gathering/tools/massdns.mdmarkdown1.9 KB
references/information-gathering/tools/metagoofil.mdmarkdown3.0 KB
references/information-gathering/tools/naabu.mdmarkdown2.7 KB
references/information-gathering/tools/nbtscan.mdmarkdown2.2 KB
references/information-gathering/tools/netdiscover.mdmarkdown2.6 KB
references/information-gathering/tools/nmap.mdmarkdown8.4 KB
references/information-gathering/tools/p0f.mdmarkdown2.1 KB
references/information-gathering/tools/recon-ng.mdmarkdown6.6 KB
references/information-gathering/tools/sherlock.mdmarkdown3.7 KB
references/information-gathering/tools/shodan.mdmarkdown3.6 KB
references/information-gathering/tools/spiderfoot.mdmarkdown2.7 KB
references/information-gathering/tools/subfinder.mdmarkdown2.5 KB
references/information-gathering/tools/sublist3r.mdmarkdown1.9 KB
references/information-gathering/tools/theHarvester.mdmarkdown2.9 KB
references/information-gathering/tools/trufflehog.mdmarkdown3.1 KB
references/information-gathering/tools/wafw00f.mdmarkdown1.9 KB
references/information-gathering/tools/whatweb.mdmarkdown5.1 KB
references/information-gathering/tools/whois.mdmarkdown2.0 KB
references/password/README.mdmarkdown11.8 KB
references/password/tools/brutespray.mdmarkdown2.8 KB
references/password/tools/cewl.mdmarkdown2.1 KB
references/password/tools/changeme.mdmarkdown3.0 KB
references/password/tools/chntpw.mdmarkdown2.5 KB
references/password/tools/crowbar.mdmarkdown2.6 KB
references/password/tools/crunch.mdmarkdown2.7 KB
references/password/tools/fcrackzip.mdmarkdown2.3 KB
references/password/tools/gpp-decrypt.mdmarkdown2.6 KB
references/password/tools/hashcat.mdmarkdown4.6 KB
references/password/tools/hashid.mdmarkdown2.1 KB
references/password/tools/hydra.mdmarkdown4.4 KB
references/password/tools/john.mdmarkdown3.2 KB
references/password/tools/kerbrute.mdmarkdown2.8 KB
references/password/tools/medusa.mdmarkdown3.3 KB
references/password/tools/name-that-hash.mdmarkdown3.2 KB
references/password/tools/ncrack.mdmarkdown3.3 KB
references/password/tools/netexec.mdmarkdown3.2 KB
references/password/tools/patator.mdmarkdown2.2 KB
references/password/tools/pdfcrack.mdmarkdown2.9 KB
references/password/tools/rainbowcrack.mdmarkdown2.9 KB
references/password/tools/responder.mdmarkdown2.7 KB
references/playbooks/README.mdmarkdown8.1 KB
references/playbooks/active-directory.mdmarkdown14.0 KB
references/playbooks/api-security.mdmarkdown18.6 KB
references/playbooks/cloud-native-assessment.mdmarkdown17.6 KB
references/playbooks/external-attack-surface.mdmarkdown8.1 KB
references/playbooks/forensics-triage.mdmarkdown11.7 KB
references/playbooks/internal-network-protocols.mdmarkdown6.5 KB
references/playbooks/internal-network.mdmarkdown14.4 KB
references/playbooks/mobile-application.mdmarkdown9.8 KB
references/playbooks/password-audit.mdmarkdown9.0 KB
references/playbooks/post-exploitation.mdmarkdown11.4 KB
references/playbooks/reporting-workflow.mdmarkdown6.3 KB
references/playbooks/rfid-nfc.mdmarkdown7.2 KB
references/playbooks/source-code-audit.mdmarkdown8.4 KB
references/playbooks/voip-ics.mdmarkdown17.3 KB
references/playbooks/web-application.mdmarkdown14.7 KB
references/playbooks/wireless-assessment.mdmarkdown9.6 KB
references/post-exploitation/README.mdmarkdown11.0 KB
references/post-exploitation/tools/bloodhound.mdmarkdown4.8 KB
references/post-exploitation/tools/bloodhound.py.mdmarkdown4.0 KB
references/post-exploitation/tools/bloodyad.mdmarkdown4.1 KB
references/post-exploitation/tools/certipy-ad.mdmarkdown3.2 KB
references/post-exploitation/tools/dnscat2.mdmarkdown3.5 KB
references/post-exploitation/tools/dploot.mdmarkdown4.2 KB
references/post-exploitation/tools/havoc.mdmarkdown3.8 KB
references/post-exploitation/tools/hekatomb.mdmarkdown3.0 KB
references/post-exploitation/tools/krbrelayx.mdmarkdown7.3 KB
references/post-exploitation/tools/lapsdumper.mdmarkdown2.4 KB
references/post-exploitation/tools/linpeas.mdmarkdown3.6 KB
references/post-exploitation/tools/linux-exploit-suggester.mdmarkdown2.8 KB
references/post-exploitation/tools/lsassy.mdmarkdown2.8 KB
references/post-exploitation/tools/mimikatz.mdmarkdown4.2 KB
references/post-exploitation/tools/powershell-empire.mdmarkdown4.0 KB
references/post-exploitation/tools/powersploit.mdmarkdown5.5 KB
references/post-exploitation/tools/proxychains.mdmarkdown2.1 KB
references/post-exploitation/tools/pspy.mdmarkdown2.8 KB
references/post-exploitation/tools/pwncat.mdmarkdown6.4 KB
references/post-exploitation/tools/sliver.mdmarkdown1.4 KB
references/post-exploitation/tools/sshuttle.mdmarkdown3.2 KB
references/post-exploitation/tools/winpeas.mdmarkdown3.0 KB
references/reporting/README.mdmarkdown2.5 KB
references/reporting/tools/pandoc.mdmarkdown3.2 KB
references/reporting/tools/report-template.mdmarkdown8.5 KB
references/reverse-engineering/README.mdmarkdown5.6 KB
references/reverse-engineering/tools/apktool.mdmarkdown1.8 KB
references/reverse-engineering/tools/binwalk.mdmarkdown3.0 KB
references/reverse-engineering/tools/checksec.mdmarkdown3.5 KB
references/reverse-engineering/tools/dex2jar.mdmarkdown3.2 KB
references/reverse-engineering/tools/frida.mdmarkdown2.4 KB
references/reverse-engineering/tools/ghidra-headless.mdmarkdown3.0 KB
references/reverse-engineering/tools/jadx.mdmarkdown2.2 KB
references/reverse-engineering/tools/ldd.mdmarkdown1.9 KB
references/reverse-engineering/tools/nm.mdmarkdown2.3 KB
references/reverse-engineering/tools/objdump.mdmarkdown2.5 KB
references/reverse-engineering/tools/objection.mdmarkdown3.0 KB
references/reverse-engineering/tools/rabin2.mdmarkdown2.3 KB
references/reverse-engineering/tools/radare2.mdmarkdown1.3 KB
references/reverse-engineering/tools/readelf.mdmarkdown2.3 KB
references/reverse-engineering/tools/ropper.mdmarkdown4.1 KB
references/reverse-engineering/tools/strings.mdmarkdown2.3 KB
references/reverse-engineering/tools/xxd.mdmarkdown2.3 KB
references/rfid-nfc/README.mdmarkdown2.7 KB
references/rfid-nfc/tools/libnfc.mdmarkdown2.2 KB

references/password/README.md

View on GitHub
# 密码攻击(Password)

密码攻击覆盖在线爆破、离线哈希破解、字典生成、网络哈希捕获等技术,是渗透测试中获取访问权限的重要手段。

---

## Golden Path

| 场景 | 首选工具链 | 何时不用 |
|------|----------|---------|
| 哈希类型识别 | `hashid` | — |
| GPU 哈希破解 | `hashcat` | 无 GPU 时用 `john` |
| CPU 哈希破解 | `john` | — |
| SSH/FTP/Web 爆破 | `hydra` | RDP 用 `crowbar` |
| AD 账号枚举 | `kerbrute userenum` | — |
| AD 密码喷射 | `kerbrute passwordspray` 或 `netexec` | 非 AD 服务用 `hydra` |
| 多协议/精细控制 | `medusa` 或 `patator` | — |
| NTLM 哈希捕获 | `responder` | 仅限内网同广播域 |
| 字典生成 | `cewl`(目标定制)+ `crunch`(规则生成) | — |
| ZIP 密码破解 | `fcrackzip` | RAR/7z/PDF 用 `john` |
| 离线 Windows SAM | `chntpw` | — |
| 网络认证暴力破解 | `ncrack` | 大多数协议优先用 `hydra` |
| 默认凭据扫描 | `changeme` | — |
| 哈希类型自动识别 | `name-that-hash` | — |

---

## 哈希提取来源

破解之前需要先获取哈希。了解哈希的来源以及使用哪个工具提取。

| 来源 | 操作系统/平台 | 哈希类型 | 提取工具 |
|------|--------------|----------|----------|
| SAM 数据库 | Windows(本地) | NTLM | `impacket-secretsdump -sam SAM -system SYSTEM LOCAL` 或 `mimikatz lsadump::sam` |
| NTDS.dit | Windows(域控) | NTLM | `impacket-secretsdump -ntds ntds.dit -system SYSTEM LOCAL` 或 `netexec smb <dc> --ntds` |
| LSASS 内存 | Windows(活动) | NTLM、Kerberos 票据 | `mimikatz sekurlsa::logonpasswords` 或 `lsassy`(远程,无文件落地) |
| LSA Secrets | Windows | 服务账户密码 | `impacket-secretsdump` 或 `mimikatz lsadump::secrets` |
| DPAPI secrets | Windows | 浏览器密码、WiFi、RDP 凭据 | `dploot`(远程)或 `mimikatz dpapi::` |
| `/etc/shadow` | Linux | SHA-512 (`$6$`)、SHA-256 (`$5$`)、bcrypt (`$2b$`) | root 权限直接读取文件;`unshadow` 与 `/etc/passwd` 合并供 john 使用 |
| 数据库表 | 任意 | MD5、SHA-1、bcrypt、应用特定 | SQL 查询(`SELECT user, password FROM users`) |
| 应用配置文件 | 任意 | 多种 | 在配置文件中搜索密码哈希、API 密钥 |
| 网络捕获 | 内网 | NetNTLMv1/v2 | `responder`(LLMNR/NBT-NS 投毒) |
| Kerberos | AD | Kerberos TGS (krb5tgs) | `impacket-GetUserSPNs`(Kerberoasting) |

交叉引用:
- `../post-exploitation/tools/mimikatz.md` -- Windows 内存和 SAM 提取
- `../exploitation/tools/impacket.md` -- secretsdump 用于 SAM、NTDS.dit、LSA Secrets
- `../post-exploitation/tools/lsassy.md` -- 远程无文件 LSASS 转储
- `../post-exploitation/tools/dploot.md` -- 远程 DPAPI 机密提取

---

## 在线密码爆破

**[hydra](tools/hydra.md)** — 多协议在线密码爆破
支持 50+ 协议的密码爆破工具,是在线爆破的首选。支持 SSH、FTP、HTTP 表单、RDP、SMB、MySQL 等,速度快,可多线程并发。必须注意账户锁定策略。

**[medusa](tools/medusa.md)** — 并行多协议爆破
功能类似 hydra,在 MSSQL、VNC 等协议上更稳定,支持批量主机并发测试,适合内网大规模爆破场景。

**[patator](tools/patator.md)** — 模块化多协议爆破与 fuzzing
灵活的爆破框架,提供 SSH、FTP、HTTP、SMTP、SMB、LDAP、RDP、DNS 等模块。当 hydra/medusa 语法过于固定,或需要协议专项模块和响应匹配时使用。

**[kerbrute](tools/kerbrute.md)** — Kerberos 用户名枚举与密码喷洒
通过 Kerberos(88 端口/UDP)枚举有效 AD 账号并进行密码喷洒,在许多 AD 配置上不触发锁定策略。用户名枚举无需密码且噪声极低,同时标记 AS-REP 可烘烤账号。

**[netexec](tools/netexec.md)** — Windows 网络批量利用(CrackMapExec 继承者)
CrackMapExec 的持续维护版继承者。对整个子网批量测试 SMB/WinRM/LDAP/MSSQL/SSH/RDP,执行命令,转储 SAM/LSA/LSASS,运行后渗透模块。横向移动的瑞士军刀。

**[brutespray](tools/brutespray.md)** — 基于 nmap 的默认凭据喷射
自动对 nmap 发现的服务喷射默认凭据。读取 nmap XML 输出,识别服务类型(SSH、FTP、MySQL、VNC 等),并测试内置默认用户名/密码组合。一条命令即可将扫描结果转化为凭据测试。

**[crowbar](tools/crowbar.md)** — RDP/OpenVPN/SSH 私钥暴力破解
专门支持 hydra 未可靠覆盖的协议:RDP、OpenVPN、SSH 私钥认证和 VNC 密钥认证。RDP 凭据测试最可靠的工具——RDP 目标请优先使用 crowbar 而非 hydra。

**[ncrack](tools/ncrack.md)** — 高速网络认证暴力破解  
支持 SSH、RDP、FTP、Telnet、HTTP(S)、SMB、VNC 等协议的网络认证暴力破解工具。以适应性时序引擎闻名,可根据网络反馈动态调节速率。作为 hydra 的替代选项,在某些协议场景下表现更稳定。  

---

## 离线哈希破解

**[hashcat](tools/hashcat.md)** — GPU 加速哈希破解
业界最快的哈希破解工具,利用 GPU 加速,支持 450+ 哈希类型(MD5/SHA/NTLM/bcrypt/NetNTLMv2等),支持字典、规则、掩码、混合多种攻击模式。

**[john](tools/john.md)** — John the Ripper 哈希破解
经典哈希破解工具,功能全面,内置规则生成系统,善于处理 Linux shadow 文件和各类加密文件(ZIP/PDF/RAR)。CPU 运行,与 hashcat 互补。

### 攻击模式选择

根据已知的密码策略和目标环境选择攻击模式:

| 模式 | hashcat 标志 | 使用场景 |
|------|-------------|----------|
| 字典 | `-a 0` | 首次尝试。使用 `rockyou.txt` 或 `cewl` 生成的目标定制字典。对常见密码最快。 |
| 字典 + 规则 | `-a 0 -r <rule>` | 纯字典失败后使用。规则对每个词进行变换(大写、追加数字、leet-speak)。 |
| 掩码(暴力) | `-a 3` | 已知密码模式(如 `Company@?d?d?d?d` 表示"Company@" + 4 位数字)。 |
| 混合 字典+掩码 | `-a 6` | 在字典词后追加掩码(如 `rockyou.txt` + `?d?d?d`)。 |
| 混合 掩码+字典 | `-a 7` | 在字典词前追加掩码。 |

### 推荐规则(按效果排序)

1. **`best64.rule`** -- 小而快,可破解约 50% 的规则可破解密码。始终从此开始。
2. **`OneRuleToRuleThemAll.rule`** -- 社区维护的综合规则。速度和覆盖率的良好平衡。
3. **`dive.rule`** -- 非常大的规则集(约 10 万条规则)。仅在更快的规则已用尽时使用。
4. **`d3ad0ne.rule`** -- 大型激进规则。适用于时间不受限的高价值哈希。

### 典型破解顺序

```
1. hashcat -a 0 -m <mode> hashes.txt rockyou.txt                          # 纯字典
2. hashcat -a 0 -m <mode> hashes.txt rockyou.txt -r best64.rule           # 字典 + 规则
3. hashcat -a 0 -m <mode> hashes.txt rockyou.txt -r OneRuleToRuleThemAll.rule
4. hashcat -a 3 -m <mode> hashes.txt ?u?l?l?l?l?l?d?d?d?s                # 按策略掩码
5. hashcat -a 6 -m <mode> hashes.txt rockyou.txt ?d?d?d                   # 混合
```

**慢速哈希类型(bcrypt、scrypt、Argon2、phpass):** 以上破解顺序假设为快速哈希类型。对于 bcrypt(`$2*$`,模式 3200)等慢速哈希,每条规则都会乘以已经很慢的基础计算成本——大型规则文件(dive.rule、d3ad0ne.rule)不切实际。需调整策略:使用较短的字典(top-1000 密码列表或 `cewl` 生成的目标定制字典),规则仅使用 `best64.rule`,已知密码策略时优先使用掩码攻击,短密码(8 字符及以下)可考虑 `john --incremental`。

---

## 字典生成

**[cewl](tools/cewl.md)** — 目标网站定制字典
爬取目标网站内容生成定制化密码字典,利用目标相关词汇提高爆破成功率。适合在通用字典失效时尝试。

**[crunch](tools/crunch.md)** — 规则字典生成
根据指定字符集和长度规则生成密码字典,适合已知密码规律(如"公司名+4位数字")的场景。

---

## 哈希识别与彩虹表

**[hashid](tools/hashid.md)** — 哈希类型识别
从原始哈希字符串识别哈希类型,并提供对应的 hashcat 模式和 john 格式。破解前的必要步骤——用错算法会浪费时间。

**[name-that-hash](tools/name-that-hash.md)** — 智能哈希类型识别  
`hashid` 的现代替代品,自动识别哈希类型并按可能性排序,直接输出对应的 hashcat 模式(`-m`)和 john 格式(`--format`)。支持 API 模式和管道输入。优先于 `hashid` 使用,识别准确度更高。

**[rainbowcrack](tools/rainbowcrack.md)** — 彩虹表哈希破解
使用预计算彩虹表近乎瞬间破解未加盐哈希(NTLM、LM、MD5)。与 hashcat 互补——当目标哈希类型有可用的预计算表时使用。

---

## 网络哈希捕获

**[responder](tools/responder.md)** — LLMNR/NBT-NS 投毒捕获
通过 LLMNR/NBT-NS 协议投毒捕获内网 NetNTLM 哈希,配合 hashcat 离线破解,是内网渗透获取凭据的经典技术。需要在同一局域网。

---

## GPP 密码解密

**[gpp-decrypt](tools/gpp-decrypt.md)** — 组策略首选项密码解密
解密 SYSVOL 共享中的组策略首选项(GPP)密码。

---

## 压缩包密码破解

**[fcrackzip](tools/fcrackzip.md)** — ZIP 压缩包密码破解
快速的 ZIP 压缩包密码破解工具,支持字典攻击和可配置字符集与长度范围的暴力破解。通过 unzip 验证密码(始终使用 `-u` 以避免误报)。RAR、7z 和 PDF 格式请改用 `john` 或 `hashcat`。

**[pdfcrack](tools/pdfcrack.md)** — PDF 密码恢复
通过暴力破解和字典攻击恢复 PDF 密码。

---

## 默认凭据扫描

**[changeme](tools/changeme.md)** — 默认凭据批量检测  
扫描网络中的服务和设备,检测是否使用出厂默认凭据。内置大量默认用户名/密码组合,覆盖路由器、交换机、数据库、Web 管理面板等常见设备和服务。适合内网渗透初期快速发现使用默认凭据的目标。  

---

## 离线 Windows 密码恢复

**[chntpw](tools/chntpw.md)** — 离线 Windows SAM 密码重置
直接编辑 Windows SAM 数据库文件,查看或重置用户密码——无需 Windows 登录。需要物理访问或文件系统访问权限(从 Kali Live 介质启动)。无法访问 BitLocker 加密卷。

---

## 决策树

当 Golden Path 不适用时选择替代方式:

| 条件 | 动作 |
|------|------|
| 快速哈希(NTLM、MD5、SHA-1) | `hashcat -a 0` 配合 `rockyou.txt` → `best64.rule` → 已知策略时用 mask |
| 慢速哈希(bcrypt、scrypt、Argon2) | 短字典(top-1000)+ 仅 `best64.rule`;已知策略时优先 mask;≤8 字符用 `john --incremental` |
| responder 捕获的 NetNTLMv2 | `hashcat -m 5600`;仅字典 + 规则(此哈希类型暴力破解太慢) |
| Kerberos TGS (krb5tgs) | `hashcat -m 13100`(RC4)或 `-m 19700`(AES);先字典 + 规则 |
| hydra 对某协议失败或挂起 | `medusa`(MSSQL/VNC 更稳定)或 `patator`(自定义响应匹配) |
| AD 密码喷射,锁定策略未知 | 先 `netexec smb --pass-pol` 检查锁定阈值再喷射 |
| hashcat 字典 + 规则耗尽仍未破解 | 升级:已知策略模式的 mask → 混合攻击(`-a 6`/`-a 7`)→ `princeprocessor` 管道输入 hashcat |
| 一次转储中有多种哈希类型 | 按类型分离,用 `name-that-hash` 逐一识别,以正确 `-m` 模式并行破解 |

---

## 交叉引用

- **密码审计 playbook**:`../playbooks/password-audit.md` -- 包含策略审查、哈希提取、破解方法论和报告的完整密码审计场景。
- **Active Directory playbook**:`../playbooks/active-directory.md` -- Kerberoasting、AS-REP roasting、密码喷洒和凭据中继工作流。
- **后渗透凭据工具**:`../post-exploitation/README.md` -- mimikatz、lsassy、dploot 用于初始访问后的凭据收集。

---

## 官方参考

- [Kali Tools](https://www.kali.org/tools/all-tools/)
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall