> 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/hacking-tools/windows/windows-enumeration.md).

# Windows 列挙

ユーザー、権限、グループ、サービス、プロセス、ネットワーク状態、システムコンテキストのための Windows ローカル列挙コマンド。

### MetasploitによるWindows列挙

カーネルの脆弱性に基づく権限昇格エクスプロイトを見つけるには、次を使用できます **multi/recon/local/\_exploit/\_suggester** これはMetasploitのモジュールで、カーネルのバージョンを分析して潜在的なエクスプロイトを特定します。

```bash
multi/recon/local_exploit_suggester を使用します 
```

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

### 手動でのWindows列挙

{% embed url="<https://github.com/gr33nm0nk2802/Windows-Exploit-Suggester>" %}

まず、次を使ってシステム情報を一覧表示します `systeminfo` コマンド:

```bash
systeminfo
```

* すべての結果を、という名前のファイルにコピーします **win.txt**.

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

次を使用します **windows-exploit-suggester** システムのバージョンに一致するエクスプロイトを見つけるスクリプト:

```bash
./windows-exploit-suggester.py --update 
```

```bash
./windows-exploit-suggester.py --database 2025-03-29-mssb.xls  --systeminfo win.txt 
```

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

* これにより、対象マシンに対する潜在的なエクスプロイトの一覧が生成されます。

### PowerShellスクリプトによる列挙

> JAWSは、ペネトレーションテスター（およびCTF参加者）がWindowsシステム上の潜在的な権限昇格経路を素早く特定できるように設計されたPowerShellスクリプトです。PowerShell 2.0で記述されているため、Windows 7以降のすべてのWindowsバージョンで動作するはずです。

{% embed url="<https://github.com/411Hall/JAWS>" %}

手順:

{% code overflow="wrap" %}

```
CMD C:/temp> powershell.exe -ExecutionPolicy Bypass -File ./jaws-enum.ps1 -OutputFilename JAWS-Enum.txt
```

{% endcode %}


---

# 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/hacking-tools/windows/windows-enumeration.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.
