> 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/active-directory/lateral-movement/llmnr-nbt-ns-poisoning.md).

# Отравление LLMNR / NBT-NS

Если доступ осуществляется по действительному имени, разрешение сначала проходит через DNS контроллера домена.

{% code overflow="wrap" %}

```bash
dir //WS01/c$
```

{% endcode %}

Если имя не существует, Windows затем пытается выполнить разрешение через `LLMNR`  или `NBT-NS` в широковещательном режиме.

{% code overflow="wrap" %}

```bash
dir //test/c$
```

{% endcode %}

<figure><img src="/files/b8d0d9a57b4f929db2ed1a392fa87c99c369bd2b" alt=""><figcaption></figcaption></figure>

С Linux мы можем прослушивать эти запросы и отвечать с помощью `Responder`.

{% code overflow="wrap" %}

```bash
sudo responder -I ens33
```

{% endcode %}

<figure><img src="/files/482f4d3b194fbb6bc5cb146f8ab6aace4c3cabd1" alt=""><figcaption></figcaption></figure>

Если жертва вводит неправильное имя общего ресурса, запрос затем попадает на нашу машину.

{% code overflow="wrap" %}

```bash
dir //test/c$
```

{% endcode %}

Затем мы получаем NTLM-хэш учетной записи, пытающейся установить соединение.

<figure><img src="/files/955c24c98b005e03d13051e8fc1c57b45fb263b8" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/ru/active-directory/lateral-movement/llmnr-nbt-ns-poisoning.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
