> 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/kerberos-observation-with-wireshark.md).

# 使用 Wireshark 观察 Kerberos

### 观察一次身份验证

我们打开 Wireshark，然后使用一个用户连接，例如：

```
user1
```

在 Wireshark 中，你可以使用以下条件过滤 Kerberos 流量：

```
kerberos
```

然后我们观察这些交换：

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

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

### 无权限访问共享的示例

从 `user2`，我们尝试访问一个管理共享：

```
cd //WS01/C$
```

在 Wireshark 中，我们可以观察到：

```
TGS-REQ
TGS-REP
SMB 访问被拒绝
```

<figure><img src="/files/78179cfb9add311f7ed0217d09ad5cf1b0e64bb8" alt=""><figcaption></figcaption></figure>

这意味着：

1. 用户请求一个服务票据；
2. KDC 签发该票据；
3. 将该票据呈交给服务器；
4. 服务器由于 SMB 或 NTFS 权限而拒绝访问。

### 票据与认证器

访问某项服务时，客户端通常会发送：

* 一个服务票据；
* 一个认证器。

票据证明 KDC 已授权访问该服务。

认证器证明客户端确实就是使用该票据的那个主体。

<figure><img src="/files/6fe1d454231b4a8b648a0998a9b48d83cf38b70f" 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/kerberos-observation-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.
