> 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/es/web/authentication/username-enumeration-via-different-responses.md).

# Enumeración de nombres de usuario mediante respuestas diferentes

### Enumeración de nombres de usuario mediante respuestas diferentes

El sitio es vulnerable a:

* la enumeración de nombres de usuario mediante diferentes mensajes de respuesta;
* la contraseña por fuerza bruta.

El objetivo es:

1. Encontrar un nombre de usuario válido en una lista de palabras.
2. Descifrar por fuerza bruta la contraseña asociada, a partir de otra lista de palabras.
3. Iniciar sesión y acceder a la página de la cuenta de usuario.

<figure><img src="/files/364f6a71cf73b9580185bbbc432635953701638f" alt=""><figcaption></figcaption></figure>

#### Configuración

* El sitio ofrece un clásico **inicio de sesión** formulario.
* Hay listas de **nombres de usuario** y **passwords** proporcionadas por el laboratorio.
* La solicitud de conexión se intercepta para enviarla a **Burp Intruder**.

#### 1. Lista de usuarios

1. Intercepta un intento de conexión y envíalo a **Intruder**.
2. Coloca un payload en el **username** parámetro.

<figure><img src="/files/00f9f9f1c17248948f26b3fa2bc40d838a97fb41" alt=""><figcaption></figcaption></figure>

* Carga la **lista de palabras de usuarios** proporcionadas por el laboratorio.

<figure><img src="/files/3b2ebc6243ba7cab1267da1e9d7828fa75870ad0" alt=""><figcaption></figcaption></figure>

1. Lanza el ataque y observa las respuestas (estado, longitud, etc.).

Observa que para el nombre de usuario **`apollo`**, la respuesta tiene una diferente **longitud** de las demás.

→ Esto indica que **`apollo`** es un nombre de usuario válido. **username**.

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

#### 2. Fuerza bruta de la contraseña

1. Reanuda la solicitud de inicio de sesión con **nombre de usuario fijado en `apollo`**.
2. Envía de nuevo la consulta en **Intruder**.
3. Esta vez coloca el payload en el **contraseña** parámetro.
4. Carga la **lista de contraseñas** proporcionada.
5. Lanza el ataque y analiza las respuestas.

<figure><img src="/files/71bced5b4f804c6dc4f656c2ab8c898387caaf7f" alt=""><figcaption></figcaption></figure>

El **`mustang`** la contraseña produce una respuesta diferente **respuesta** (p. ej., longitud o contenido) que indica una conexión exitosa **conexión**.

<figure><img src="/files/0be9d45a7c5b94744469a68062afb155e6b27f29" alt=""><figcaption></figcaption></figure>

#### 3. Inicio de sesión final

Las credenciales válidas son:

* **Nombre de usuario :** `apollo`
* **Contraseña :** `mustang`


---

# 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/es/web/authentication/username-enumeration-via-different-responses.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.
