> 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/basic-concepts.md).

# 基础概念

无线安全笔记中的基本 WiFi 和网络概念。

这些概念涵盖网络接口、适配器和网络地址。在分析范围内的 WiFi 网络之前，请先使用它们。

### 网络接口

使用 `ifconfig` 用于列出可用的网络接口。

```bash
ifconfig
```

`ens33` 是一个本地网络接口。它可以有一个私有 IP 地址。

`wlx00c0cabd0890` 是测试期间使用的无线适配器。此输出显示为监控模式：

```bash
wlx00c0cabd0890  IEEE 802.11  模式：Monitor  频率：2.484 GHz  发射功率=6 dBm
          重试短限制：7   RTS 阈值：关闭   分片阈值：关闭
          电源管理：关闭
```

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FJFKrfUitq8W9Yz7gtglJ%2F%7B2801BCE5-0F22-4E7B-B24D-29AF801133FA%7D.png?alt=media&amp;token=5896176c-985d-451c-9f3a-b739bc81f740" alt=""><figcaption></figcaption></figure>

### 网络适配器

无线适配器必须支持监控模式。没有它，WiFi 测试将无法工作。

### 公共和私有 IP 地址

私有 IP 用于标识本地网络中的设备。公共 IP 用于标识互联网连接。

检查分配给设备的本地 IP 地址：

```bash
hostname -I
```

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FY5IDNzsjBkKatqAE4nsr%2F%7BC5ECE368-0E3A-47B0-928C-7227ED26AF45%7D.png?alt=media&amp;token=1e9af9de-3616-407e-b67c-fb8119c53a65" alt=""><figcaption></figcaption></figure>

使用以下命令检查公网 IP 地址：

```bash
curl ifconfig.me
```

### MAC 地址

MAC 地址用于标识网络接口。它充当硬件标识符。

MAC 地址可以通过欺骗进行更改。请确保欺骗活动仅限于获批的设备和已记录的测试。

使用以下命令检查接口的 MAC 地址 `macchanger`:

```bash
macchanger -s wlx00c0cabd0890
```

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FsysE9MiC62A1FzTxHq1Q%2F%7B3664A5D1-636A-4BB3-B9BA-C99FE5DEDB65%7D.png?alt=media&amp;token=c4826d73-387a-4e15-951a-7f9d91cc0d5c" 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/basic-concepts.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.
