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

# Enumeração do Windows

### Enumeração do Windows com Metasploit

Para encontrar exploits de escalonamento de privilégios baseados em vulnerabilidades do kernel, podemos usar **multi/recon/local/\_exploit/\_suggester** no Metasploit, um módulo que analisa a versão do kernel para identificar possíveis exploits.

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

<figure><img src="/files/d80e122741277f48e0aa4ff4d5d9506784ef8ad7" alt=""><figcaption></figcaption></figure>

### Enumeração manual do Windows

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

Comece listando as informações do sistema com o `systeminfo` comando:

```bash
systeminfo
```

* Copie todos os resultados para um arquivo chamado **win.txt**.

<figure><img src="/files/d0c45dd032628ef866cd32a9429d978b067b0aa9" alt=""><figcaption></figcaption></figure>

Use o **windows-exploit-suggester** script para encontrar exploits compatíveis com a versão do sistema:

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

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

<figure><img src="/files/f3f9f315cc0d2191b730657a809604f163b4f7cd" alt=""><figcaption></figcaption></figure>

* Isso gerará uma lista de exploits em potencial para a máquina-alvo.

### Enumeração com script PowerShell

> JAWS é um script PowerShell projetado para ajudar testadores de intrusão (e participantes de CTF) a identificar rapidamente possíveis vetores de escalonamento de privilégios em sistemas Windows. Ele foi escrito em PowerShell 2.0 e, portanto, deve funcionar em todas as versões do Windows desde o Windows 7.

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

Ordem:

{% 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/pt-br/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.
