> 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/kernel-exploitation.md).

# Windowsカーネルエクスプロイト

OSビルド、アーキテクチャ、パッチレベル、ローカル権限昇格エクスプロイト候補を検証するためのWindowsカーネルエクスプロイトメモ。

Windowsカーネルのエクスプロイトは、ユーザーコンテキストを昇格権限へ移行させうるローカル脆弱性を対象とします。エクスプロイトをテストする前に、必ず正確なバージョン、アーキテクチャ、インストール済みパッチを特定してください。

```cmd
systeminfo
```

カーネルのエクスプロイトは強力ですが、壊れやすいです。認証情報、サービス、スケジュール済みタスク、トークン権限、アプリケーションの設定ミスを確認した後に使用してください。

## 基本チェック

```cmd
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
wmic qfe list brief
whoami /priv
```

完全版 `systeminfo` オフライン分析用の出力:

```cmd
systeminfo > C:\Windows\Temp\systeminfo.txt
```

## エクスプロイト候補の提案ツール

可能であれば、攻撃用マシンから提案ツールを実行し、その後、候補をすべて手動で検証してください。

```bash
python3 wes.py --update
python3 wes.py systeminfo.txt --exploits-only
searchsploit windows kernel local
```

ファイル転送が許可されている場合は、オンターゲットの補助ツールが役立つことがあります:

```cmd
Watson.exe
winPEASx64.exe systeminfo
```

## 一般的なレガシー対象

| 脆弱性             | 一般的な対象範囲                              | メモ                                         |
| --------------- | ------------------------------------- | ------------------------------------------ |
| `MS16-032`      | Windows 7-10 / Server 2008-2012 R2    | Secondary Logon の問題。テスト前にパッチ適用状況を確認してください。 |
| `MS15-051`      | Windows 7 / 8.1 / Server 2008-2012 R2 | Win32k のローカル権限昇格。アーキテクチャが重要です。             |
| `CVE-2018-8120` | Windows 7 SP1 / Server 2008 R2 SP1    | 関連する2018年のセキュリティロールアップを確認してください。           |
| `CVE-2019-0803` | パッチ未適用の古い Windows 7-10 ビルド            | 正確なビルドとエクスプロイトの信頼性を検証してください。               |

## 安全上の注意

* 何かを実行する前に、OSバージョン、アーキテクチャ、言語、欠落しているKBを一致させてください。
* ランダムな事前コンパイル済みバイナリより、ソースレビュー済みまたはラボで検証済みのビルドを優先してください。
* 不安定なエクスプロイトではクラッシュが起こることを想定し、可能であればラボでスナップショットを取得してください。
* 報告用に、エクスプロイト名、ハッシュ、ソース、対象ビルド、結果を記録してください。

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-server" style="color:$primary;">:server:</i></h3></td><td><h4>Windows Server 2012 - MS16-032</h4></td><td>脆弱な Windows Server 2012 R2 のラボ対象に対して、MS16-032 Secondary Logon のローカル権限昇格を悪用します。</td><td><a href="/ja/windows-vulnerabilities/kernel-exploitation/windows-server-2012-kernel-exploitation.md">Windows Server 2012 - MS16-032</a></td></tr><tr><td><h3><i class="fa-windows" style="color:$primary;">:windows:</i></h3></td><td><h4>Windows 7 Enterprise - MS11-046</h4></td><td>未パッチの Windows 7 Enterprise ラボ対象で MS11-046 のローカル権限昇格を検証します。</td><td><a href="/ja/windows-vulnerabilities/kernel-exploitation/windows-7-enterprise-kernel-exploitation.md">Windows 7 Enterprise - MS11-046</a></td></tr><tr><td><h3><i class="fa-server" style="color:$primary;">:server:</i></h3></td><td><h4>Windows Server 2003 - Churrasco</h4></td><td>互換性のある Windows Server 2003 のラボ対象に対して Churrasco を使用し、ローカル権限昇格を行います。</td><td><a href="/ja/windows-vulnerabilities/kernel-exploitation/windows-server-2003-kernel-exploitation.md">Windows Server 2003 - Churrasco</a></td></tr></tbody></table>


---

# 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/kernel-exploitation.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.
