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

# Enumeração de nome de usuário via respostas diferentes

### Enumeração de nomes de usuário por meio de diferentes respostas

O site é vulnerável a:

* enumeração de nomes de usuário por meio de diferentes mensagens de resposta;
* a senha por força bruta.

O objetivo é:

1. Encontrar um nome de usuário válido em uma wordlist.
2. Forçar a senha associada, a partir de outra wordlist.
3. Fazer login e acessar a página da conta do usuário.

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

#### Configuração

* O site oferece um clássico **login** formulário.
* Há listas de **nomes de usuário** e **passwords** fornecidas pelo laboratório.
* A solicitação de conexão é interceptada para enviar ao **Burp Intruder**.

#### 1. Lista de Usuários

1. Intercepte uma tentativa de conexão e envie para **Intruder**.
2. Coloque uma carga útil em **nome de usuário** parâmetro.

<figure><img src="/files/344f1ef9186cb9a219275c533ad626dd65167791" alt=""><figcaption></figcaption></figure>

* Carregue a **lista de nomes de usuário** fornecidas pelo laboratório.

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

1. Inicie o ataque e observe as respostas (status, tamanho etc.).

Observe que, para o nome de usuário **`apollo`**, a resposta tem um **tamanho** diferente das outras.

→ Isso indica que **`apollo`** é um nome de usuário válido **nome de usuário**.

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

#### 2. Força Bruta da Senha

1. Retome a solicitação de login com **o nome de usuário fixado em `apollo`**.
2. Envie a consulta novamente em **Intruder**.
3. Desta vez, coloque a carga útil na **senha** parâmetro.
4. Carregue a **lista de senhas** fornecida.
5. Inicie o ataque e analise as respostas.

<figure><img src="/files/332a20a69cf2aee660e8f9168c2be805199af376" alt=""><figcaption></figcaption></figure>

O **`mustang`** a senha produz uma resposta diferente **resposta** (por exemplo, tamanho ou conteúdo) indicando uma conexão bem-sucedida **conexão**.

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

#### 3. Login Final

As credenciais válidas são:

* **Usuário :** `apollo`
* **Senha :** `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/pt-br/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.
