> 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/ru/hacking-wifi/wpa-wpa2-psk-network-attacks/fundamentals/mac-address-spoofing-and-tips.md).

# Подмена MAC-адреса и советы

Безопасная проверка, изменение, подтверждение и восстановление MAC-адреса адаптера в рамках ограниченной беспроводной оценки.

Изменение MAC-адреса адаптера может помочь при проверке конфиденциальности и ограниченных беспроводных тестах. Проводите тестирование только на оборудовании, которое вам принадлежит или на которое у вас есть разрешение.

{% hint style="warning" %}
Не используйте MAC-адрес, чтобы выдавать себя за другое устройство или обходить средства контроля доступа.
{% endhint %}

### Перед началом

Запишите постоянный MAC-адрес адаптера. Он понадобится, чтобы позже восстановить нормальную работу.

Замените `wlan0mon` с вашим активным беспроводным интерфейсом на протяжении всего этого руководства.

### 1. Проверьте текущий адрес

Просмотрите текущий и постоянный MAC-адреса:

```bash
macchanger -s wlan0mon
```

<figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FfMoCl3IxKiZVif0DYpaj%2F%7BEBE2303B-FEA8-454A-BA9C-12F25254BEC7%7D.png?alt=media&amp;token=cfc40f07-ee16-4bd5-83e1-84762b07b825" alt=""><figcaption></figcaption></figure>

Постоянный адрес принадлежит аппаратной части адаптера. Текущий адрес может временно изменяться.

<figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2F2MgLcus5UUOwGajCTfW2%2Fimage.png?alt=media&amp;token=3597f615-8957-4843-b0a7-b57d21367dc2" alt="" width="405"><figcaption></figcaption></figure>

### 2. Измените адрес

Перед изменением MAC-адреса отключите интерфейс:

```bash
ip link set dev wlan0mon down
```

Назначьте случайный MAC-адрес:

```bash
macchanger -r wlan0mon
```

Снова включите интерфейс:

```bash
ip link set dev wlan0mon up
```

### 3. Проверьте изменение

Подтвердите новый адрес:

```bash
macchanger -s wlan0mon
```

<figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FajeSJE98NV8dW8cNtSiU%2Fimage.png?alt=media&amp;token=99ae0196-322c-494a-9043-cec226977343" alt=""><figcaption></figcaption></figure>

### 4. Восстановите постоянный адрес

Восстановите аппаратный MAC-адрес после лабораторной работы:

```bash
ip link set dev wlan0mon down
macchanger -p wlan0mon
ip link set dev wlan0mon up
```

### Примечания по работе

* Изменённый адрес обычно сбрасывается после перезапуска адаптера или системы.
* Изменение MAC-адреса может прервать существующие подключения Wi‑Fi или DHCP.
* Используйте локально администрируемые или случайно сгенерированные адреса для ограниченных тестов.


---

# 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/ru/hacking-wifi/wpa-wpa2-psk-network-attacks/fundamentals/mac-address-spoofing-and-tips.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.
