> 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/fundamentals/configuring-the-wireless-card-in-monitor-mode.md).

# 将无线网卡配置为监听模式

准备、启用、验证并恢复处于监听模式的无线适配器。

请在经批准的无线适配器上使用此工作流。监控模式可能会中断适配器的正常网络连接。

{% hint style="warning" %}
`airmon-ng check kill` 会停止可能影响连接性的服务。请先保存正在进行的工作。
{% endhint %}

### 1. 识别无线接口

列出可用的网络接口：

```bash
ip a
```

识别无线适配器名称。本示例使用 `wlx00c0cabd0890`.

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FaisiDxOMMALGyrGhFLRo%2F%7BF180DED4-9062-458B-9DFB-5D5196146768%7D.png?alt=media&amp;token=372d4fc7-8909-497b-9c85-22493fa4b9db" alt=""><figcaption></figcaption></figure>

### 2. 停止冲突进程

停止可能干扰监控模式的服务：

```bash
airmon-ng check kill
```

这可能会停止 NetworkManager，并使系统断开 WiFi 连接。

### 3. 启用监控模式

在所选适配器上启动监控模式：

```bash
airmon-ng start wlx00c0cabd0890
```

该工具可能会创建或重命名一个监控接口。不要假定其名称是固定的。

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FhAIEEcZMiyaQtT97tHAe%2F%7B55CCC10D-F432-46AB-BF0D-893F699207CC%7D.png?alt=media&amp;token=9d48c036-e91c-4fd0-b5d7-69ae8939daca" alt=""><figcaption></figcaption></figure>

### 4. 验证接口

确认适配器报告 `Mode:Monitor`:

```bash
iwconfig

ifconfig wlan0mon up
```

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2F4FBnwvB4EcPCS0EXsKc4%2F%7B27671677-BF7E-4C46-AF64-BE6EC0F964B4%7D.png?alt=media&amp;token=59a6033a-5e35-4d7b-837d-4f9924d7f3b1" alt=""><figcaption></figcaption></figure>

在后续实验任务中，请使用输出中显示的监控接口名称。

### 5. 恢复正常操作

评估结束后停止监控模式。请将 `wlan0mon` 替换为你的接口名称：

```bash
airmon-ng stop wlan0mon
```

重启 NetworkManager 以恢复正常的网络管理：

```bash
sudo systemctl restart NetworkManager
```

如果连接没有恢复，请在 NetworkManager 重启后通过它重新连接。


---

# 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/fundamentals/configuring-the-wireless-card-in-monitor-mode.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.
