> 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/as-rep-roasting-with-wireshark.md).

# 使用 Wireshark 进行 AS-REP Roasting

### 手动观察

在实验中，我们可以在进行身份验证尝试时使用 Wireshark 捕获流量。

我们尤其观察到：

```bash
AS-REQ
AS-REP
```

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

在 Kerberos 数据包中，我们可以分析：

```bash
padata
padata-value
加密文件
盐值
```

<figure><img src="/files/46cf2d74463ddcd350725285ab22ead658191593" alt=""><figcaption></figcaption></figure>

这些值可用于重建一个与 John 或 Hashcat 兼容格式的哈希。

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

### Hashcat 19900 格式

对于某些与 Kerberos 预身份验证相关的情况，Hashcat 可以使用以下模式：

```
19900
```

{% embed url="<https://hashcat.net/wiki/doku.php?id=example_hashes>" %}

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

示例结构：

```
$krb5pa$18$user$DOMAIN$SALT$CIPHER
```

适用于实验的示例：

{% code overflow="wrap" %}

```bash
$krb5pa$18$Administrador$WHOAMI.LOCAL$WIN-D4TRD7S7IHPAdministrador$96c289009b05181bfd32062962740b1b1ce5f74eb12e0266cde74e81094661addab08c0c1a178882c91a0ed89ae4e0e68d2820b9cce69770
```

{% endcode %}

然后，我们可以运行 John：

{% code overflow="wrap" %}

```bash
john --wordlist=passwords.txt hash
```

{% endcode %}

<figure><img src="/files/a81ac7f6db527c024be641d85ed5926fc0077806" 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/as-rep-roasting-with-wireshark.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.
