> 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/ports-and-services/elasticsearch-9200.md).

# Elasticsearch - 9200

{% hint style="info" %}
Elasticsearch — это поисковая и аналитическая система в реальном времени, используемая для быстрого индексирования и поиска больших объемов данных. Она интегрируется в стек ELK, чтобы предоставлять расширенные возможности визуализации и анализа данных.
{% endhint %}

### Утечка информации Elasticsearch

#### На порту 9200 размещена версия Elasticsearch 6.4.2.

<figure><img src="/files/5d4c84e09cd4c5fe46d9ea8d87f451d77a873373" alt="" width="563"><figcaption></figcaption></figure>

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

Доступ к `/_cat/indices?` URL возвращает список индексов с их UUID. Чтобы извлечь содержимое индекса, используйте следующий URL:

`http://haystack.htb:9200/<index>/_search?pretty=true&size=1000`

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

**Фильтрация данных с помощью Curl**

Используя `quotes` индекс и фильтрация по ключевому слову challenge, находится релевантная информация:

```bash
curl -s -X GET "http://haystack.htb:9200/quotes/_search?pretty=true&size=1000" | jq | grep -Ei "clave"
```

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

**Декодирование строк, закодированных в Base64**

Восстанавливаются две строки, закодированные в base64. Их декодирование раскрывает учетные данные:

```bash
echo -n "cGFzczogc3BhbmlzaC5pcy5rZXk=" | base64 -d; echo
echo -n "dXNlcjogc2VjdXJpdHkg" | base64 -d; echo
```

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

**Пользователь:** `security`/ **Пароль:** `spanish.is.key`


---

# 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/ports-and-services/elasticsearch-9200.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.
