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

# Перечисление имён пользователей через различные ответы

### Перебор имён пользователей по разным ответам

Сайт уязвим к:

* перебору имён пользователей по разным сообщениям ответа;
* подбору пароля методом грубой силы.

Цель:

1. Найти действительное имя пользователя в словаре.
2. Подобрать связанный пароль из другого словаря.
3. Войти в систему и получить доступ к странице учётной записи пользователя.

<figure><img src="/files/78770d0777cd79045ad9395f3152e6748ff32f64" alt=""><figcaption></figcaption></figure>

#### Настройка

* Сайт предлагает классическую **форму входа** форму.
* Есть списки **имён пользователей** и **passwords** предоставленные лабораторией.
* Запрос на подключение перехватывается для отправки в **Burp Intruder**.

#### 1. Список пользователей

1. Перехватите попытку подключения и отправьте её в **Intruder**.
2. Разместите полезную нагрузку в **username** параметр.

<figure><img src="/files/157299062c06797515da69597f10048959cabbd8" alt=""><figcaption></figcaption></figure>

* Загрузите **список имён пользователей** предоставленные лабораторией.

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

1. Запустите атаку и наблюдайте за ответами (статус, длина и т. д.).

Обратите внимание, что для имени пользователя **`apollo`**, ответ имеет другую **длину** по сравнению с остальными.

→ Это указывает на то, что **`apollo`** является действительным **username**.

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

#### 2. Подбор пароля методом грубой силы

1. Возобновите запрос на вход с **имя пользователя установлено как `apollo`**.
2. Отправьте запрос снова в **Intruder**.
3. На этот раз разместите полезную нагрузку в **пароль** параметр.
4. Загрузите **список паролей** предоставленный.
5. Запустите атаку и проанализируйте ответы.

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

У **`mustang`** пароль даёт другой **ответ** (например, длина или содержимое), указывающие на успешное **подключение**.

<figure><img src="/files/7eea6669267b178d4f1720a903d89430aa5ad9cd" alt=""><figcaption></figcaption></figure>

#### 3. Окончательный вход

Действительные учетные данные:

* **Имя пользователя :** `apollo`
* **Пароль :** `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/ru/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.
