# Enumeración

:warning: Ten en cuenta que si el equipo está dentro de un dominio debes revisar la sección de [Enumeración de AD](/securiters-wiki/internas/ad/enumeracion.md).

## Información básica del equipo

```
whoami
systeminfo
hostname
net users
net logalgroups
netsh firewall show state
netsh firewall show config
netstat -ano
```

Tareas programadas

```
schtasks /query /fo LIST /v
```

Parches instalados en el equipo

```
wmic qfe get Caption,Description,HotFixID,InstalledOn
```

Drivers instalados

```
driverquery
```

## Ficheros e información sensible

Buscar ficheros

{% code overflow="wrap" %}

```
findstr /si password *.txt
findstr /spin "password" *.*
findstr /si password *.xml
findstr /si password *.ini

#Buscar cadenas de texto en ficheros de configuración
dir /s *pass* == *cred* == *vnc* == *.config*
```

{% endcode %}

Buscar registros

```
#autologin
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\Currentversion\Winlogon"

#putty
reg query "HKCU\Software\SimonTatham\PuTTY\Sessions"

#contraseñas
reg query HKLM /f password /t REG_SZ /s
reg query HKCU /f password /t REG_SZ /s

# VNC
reg query "HKCU\Software\ORL\WinVNC3\Password"

# Windows autologin
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\Currentversion\Winlogon"

# SNMP Paramters
reg query "HKLM\SYSTEM\Current\ControlSet\Services\SNMP"

# Putty
reg query "HKCU\Software\SimonTatham\PuTTY\Sessions"
```

Listar parches de seguridad instalados

```
wmic qfe get Caption,Description,HotFixID,InstalledOn
```

#### Exploits&#x20;

* EthernalBlue (CVE-2017-0143)
* PrintNightmare (CVE-2021–34527)
* DirtyCow (CVE-2016-5195)
* noPac (CVE-2021-42278 y CVE-2021-42287)
* ProxyLogon (CVE-2021-26855)


---

# Agent Instructions: 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:

```
GET https://wiki.securiters.com/securiters-wiki/redteam/windows/enumeracion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
