> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/zh/password-attacks.md).

# 密码攻击

面向授权实验室和评估的密码攻击说明：哈希识别、离线破解、压缩包恢复、SSH 密钥口令、Hydra 工作流程、字典生成和凭据验证。

## 攻击技术

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-key" style="color:$primary;">:key:</i></h3></td><td><h4>哈希密码破解</h4></td><td>哈希密码破解说明，包括识别哈希格式、准备字典和规则、运行 hashcat 或 John，以及验证恢复出的秘密。</td><td><a href="/pages/93dbe8a9279a5ef9cee6c644cfd65cef76677798">/pages/93dbe8a9279a5ef9cee6c644cfd65cef76677798</a></td></tr><tr><td><h3><i class="fa-folder-tree" style="color:$primary;">:folder-tree:</i></h3></td><td><h4>ZIP 压缩包破解</h4></td><td>ZIP 压缩包暴力破解说明，包括识别加密文件、提取可破解的哈希、运行 John 或 hashcat，以及验证恢复出的密码。</td><td><a href="/pages/beee76c7c3f8dbf2395c706758bb450f78196b93">/pages/beee76c7c3f8dbf2395c706758bb450f78196b93</a></td></tr><tr><td><h3><i class="fa-terminal" style="color:$primary;">:terminal:</i></h3></td><td><h4>SSH 密钥口令破解</h4></td><td>SSH 私钥破解说明，包括将密钥转换为哈希格式、使用 John 恢复口令，以及用恢复出的密钥验证访问。</td><td><a href="/pages/2668cbc165052db7c3d5302a2f06f9031c23b060">/pages/2668cbc165052db7c3d5302a2f06f9031c23b060</a></td></tr><tr><td><h3><i class="fa-key" style="color:$primary;">:key:</i></h3></td><td><h4>CeWL 网站字典</h4></td><td>CeWL 网站字典说明，包括爬取目标内容、生成自定义密码候选项，以及在渗透测试中提升暴力破解攻击效果。</td><td><a href="/pages/e1c6bbd9ed7eb87449c85b5acc8ca4e99d358054">/pages/e1c6bbd9ed7eb87449c85b5acc8ca4e99d358054</a></td></tr><tr><td><h3><i class="fa-folder-open" style="color:$primary;">:folder-open:</i></h3></td><td><h4>使用 Hydra 对 FTP 进行暴力破解</h4></td><td>使用 Hydra 进行 FTP 暴力破解的说明，包括测试凭据、调整字典、处理服务响应，以及验证已认证的 FTP 访问。</td><td><a href="/pages/3ea403f6a6ae5fc7aaa3554332c8ecfb5f5cd5b9">/pages/3ea403f6a6ae5fc7aaa3554332c8ecfb5f5cd5b9</a></td></tr><tr><td><h3><i class="fa-key" style="color:$primary;">:key:</i></h3></td><td><h4>使用 hashid 识别哈希类型</h4></td><td>hashid 说明，用于识别密码哈希类型、比较可能的算法，并为 John 或 hashcat 选择正确的破解模式。</td><td><a href="/pages/7ad27be23c0647e75fa7a3560af22d63ae75de47">/pages/7ad27be23c0647e75fa7a3560af22d63ae75de47</a></td></tr><tr><td><h3><i class="fa-key" style="color:$primary;">:key:</i></h3></td><td><h4>使用 Hashcat 生成密码变体</h4></td><td>Hashcat 密码变体说明，包括掩码、规则、变形和候选项生成，以提升授权审计中的破解覆盖率。</td><td><a href="/pages/a42b2249f91a33c17e68ca07acbc7db5c244e6a9">/pages/a42b2249f91a33c17e68ca07acbc7db5c244e6a9</a></td></tr><tr><td><h3><i class="fa-terminal" style="color:$primary;">:terminal:</i></h3></td><td><h4>使用 Hydra 对 SSH 进行暴力破解</h4></td><td>使用 Hydra 进行 SSH 暴力破解的说明，包括用户名和密码测试、速率控制注意事项、服务验证和凭据核验。</td><td><a href="/pages/1ed389124a72c82244dcc1de30054edeb9dfcc24">/pages/1ed389124a72c82244dcc1de30054edeb9dfcc24</a></td></tr><tr><td><h3><i class="fa-key" style="color:$primary;">:key:</i></h3></td><td><h4>KeePass KDBX 破解</h4></td><td>KeePass KDBX 暴力破解说明，包括提取数据库哈希、破解主密码，以及在审计期间查看恢复出的保险库条目。</td><td><a href="/pages/3fb31877421fcd2859d568291b761ea0b7c4f8f9">/pages/3fb31877421fcd2859d568291b761ea0b7c4f8f9</a></td></tr><tr><td><h3><i class="fa-key" style="color:$primary;">:key:</i></h3></td><td><h4>加盐哈希破解</h4></td><td>加盐哈希破解说明，包括识别盐格式、准备 hashcat 或 John 输入、选择模式，以及验证恢复出的密码。</td><td><a href="/pages/b60fb33a1339c1277aa57120eb4c81c9a730d1d1">/pages/b60fb33a1339c1277aa57120eb4c81c9a730d1d1</a></td></tr><tr><td><h3><i class="fa-folder-tree" style="color:$primary;">:folder-tree:</i></h3></td><td><h4>GPG 消息口令破解</h4></td><td>GPG 消息暴力破解说明，包括处理加密文件、测试口令、恢复明文，以及记录加密攻击步骤。</td><td><a href="/pages/6bbff4397ab87a02b31369e164363602e0018853">/pages/6bbff4397ab87a02b31369e164363602e0018853</a></td></tr><tr><td><h3><i class="fa-folder-tree" style="color:$primary;">:folder-tree:</i></h3></td><td><h4>sucrack 本地 su 暴力破解</h4></td><td>sucrack 暴力破解说明，用于本地测试 Linux su 密码、准备用户和字典输入，以及验证权限提升路径。</td><td><a href="/pages/818c0fc6521775a1718f584d7fc1f100c24a1203">/pages/818c0fc6521775a1718f584d7fc1f100c24a1203</a></td></tr><tr><td><h3><i class="fa-folder-tree" style="color:$primary;">:folder-tree:</i></h3></td><td><h4>PFX 证书破解</h4></td><td>PFX 证书暴力破解说明，包括提取哈希、破解受保护的证书包，以及使用恢复出的密钥进行认证访问。</td><td><a href="/pages/6ad33f8e97f8a95f7b5e42155822f4bccf747cf4">/pages/6ad33f8e97f8a95f7b5e42155822f4bccf747cf4</a></td></tr><tr><td><h3><i class="fa-terminal" style="color:$primary;">:terminal:</i></h3></td><td><h4>加密 OpenSSH 密钥破解</h4></td><td>OpenSSH 加密密钥暴力破解说明，包括提取私钥哈希、破解口令，以及验证 SSH 密钥认证。</td><td><a href="/pages/3f73098a137d9f7706651e6d3b103189b0bb5735">/pages/3f73098a137d9f7706651e6d3b103189b0bb5735</a></td></tr></tbody></table>

\## 工作流程

1. 识别凭据材料：哈希、压缩包、私钥、数据库、证书或服务登录信息。
2. 在使用 Hydra 等工具进行在线验证之前，确认授权范围并避免账户锁定。
3. 将离线材料转换为正确的破解格式，并识别正确的模式。
4. 结合 CeWL、Hashcat 规则和已知密码模式构建有针对性的字典和变形。
5. 记录命令、字典、破解模式、恢复出的凭据和验证证据。

## 导航指南

* 使用 [使用 hashid 识别哈希类型](/zh/password-attacks/hash-type-hashid.md) 在选择破解模式之前。
* 使用 [使用 Hashcat 生成密码变体](/zh/password-attacks/password-variants-hashcat.md) 和 [CeWL 网站字典](/zh/password-attacks/brute-force-web-site-content-cewl.md) 以便更好地生成候选项。
* 请参阅压缩包、KeePass、GPG、PFX、SSH 密钥和 OpenSSH 页面，了解离线破解工作流程。
* 请参阅 Hydra 页面，了解针对 FTP 或 SSH 的限定范围在线凭据验证。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/zh/password-attacks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
