> 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/hacking-wifi/wpa-wpa2-psk-network-attacks/password-auditing/using-hcxpcaptool-and-recovering-the-password.md).

# 为密码审计准备捕获文件

转换无线捕获文件以进行离线密码强度测试。

将抓取内容转换为审计工具支持的格式。

此工作流用于测试密码强度。它不会绕过 WPA/WPA2 加密。

### 转换抓取内容

从抓取内容创建哈希输出：

```bash
hcxpcapngtool -z myHashes Capture.pcapng
```

在开始离线审计之前，请检查生成的输出。

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FS09zfquUwvZ1JT7PWC5Y%2Fimage.png?alt=media&amp;token=f44fbae0-f6eb-41b0-8e28-84c2f766e46e" alt=""><figcaption></figcaption></figure>

### 检查输出

验证输出是否包含预期的身份验证材料。

请安全存储该文件。将其视为敏感身份验证数据。

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FL47DkCUF20ivLMO4bWcE%2Fimage.png?alt=media&amp;token=c9e7e5ae-4279-4965-99eb-f352b1847e59" alt=""><figcaption></figcaption></figure>

### 运行经批准的密码审计

使用词表评估口令是否符合策略：

```bash
john --wordlist=password.txt myHashes

hashcat -m 16800 -a 0 myHashes passwords.txt
```

记录结果时，不要在报告中暴露已恢复的凭据。

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2F1087AbEPXK8kMzdjZSTX%2Fimage.png?alt=media&amp;token=866015bb-60b8-4c61-8ca1-d69f80fe82a1" alt=""><figcaption></figcaption></figure>

如果恢复成功，请轮换该口令，并要求使用更长且唯一的替代口令。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/zh/hacking-wifi/wpa-wpa2-psk-network-attacks/password-auditing/using-hcxpcaptool-and-recovering-the-password.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
