> 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/pt-br/hacking-wifi/basic-concepts.md).

# Conceitos Básicos

Conceitos básicos de Wi-Fi e redes para notas de segurança sem fio.

Estes conceitos abrangem interfaces, adaptadores e endereços de rede. Use-os antes de analisar uma rede WiFi em escopo.

### Interfaces de rede

Use `ifconfig` para listar as interfaces de rede disponíveis.

```bash
ifconfig
```

`ens33` é uma interface de rede local. Ela pode ter um endereço IP privado.

`wlx00c0cabd0890` é o adaptador sem fio usado durante os testes. Esta saída mostra o modo monitor:

```bash
wlx00c0cabd0890  IEEE 802.11  Mode:Monitor  Frequency:2.484 GHz  Tx-Power=6 dBm
          Limite curto de repetição:7   limiar RTS:off   limiar de fragmentação:off
          Gerenciamento de energia:off
```

<figure><img src="https://783634792-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>

### Adaptadores de rede

O adaptador sem fio deve suportar o modo monitor. Sem isso, os testes de WiFi não funcionarão.

### Endereços IP públicos e privados

Um IP privado identifica dispositivos dentro de uma rede local. Um IP público identifica a conexão com a Internet.

Verifique os endereços IP locais atribuídos ao dispositivo:

```bash
hostname -I
```

<figure><img src="https://783634792-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>

Verifique o endereço IP público com:

```bash
curl ifconfig.me
```

### Endereços MAC

Um endereço MAC identifica uma interface de rede. Ele funciona como um identificador de hardware.

Um endereço MAC pode ser alterado por meio de spoofing. Mantenha a atividade de spoofing restrita a dispositivos aprovados e testes documentados.

Verifique o endereço MAC de uma interface com `macchanger`:

```bash
macchanger -s wlx00c0cabd0890
```

<figure><img src="https://783634792-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/pt-br/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.
