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

# Windows 枚举

### Metasploit Windows 枚举

要查找基于内核漏洞的权限提升利用，我们可以使用 **multi/recon/local/\_exploit/\_suggester** 在 Metasploit 中，这是一个通过分析内核版本来识别潜在利用的模块。

```bash
use multi/recon/local_exploit_suggester 
```

<figure><img src="/files/455c234c01a5664177dce3e3210d31630771bcae" alt=""><figcaption></figcaption></figure>

### 手动 Windows 枚举

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

首先使用以下命令列出系统信息： `systeminfo` 命令：

```bash
systeminfo
```

* 将所有结果复制到一个名为 **win.txt**.

<figure><img src="/files/da729a4474f5bbfdfe81bb08258e37bb9aa2c715" 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="/files/48c14a5d75348d85838486f4f60800af343ba752" alt=""><figcaption></figcaption></figure>

* 这将为目标机器生成一个潜在漏洞利用列表。

### PowerShell 脚本枚举

> JAWS 是一个 PowerShell 脚本，旨在帮助渗透测试人员（以及 CTF 参与者）快速识别 Windows 系统上潜在的权限提升向量。它使用 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/zh/hacking-tools/windows/windows-enumeration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
