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

# Elasticsearch - 9200

{% hint style="info" %}
Elasticsearch est un moteur de recherche et d’analyse en temps réel utilisé pour indexer et rechercher rapidement de grands volumes de données. Il s’intègre à la pile ELK pour offrir des capacités avancées de visualisation et d’analyse des données.
{% endhint %}

### Elasticsearch - Fuite d'informations

#### Le port 9200 héberge Elasticsearch version 6.4.2.

<figure><img src="/files/406fd93210f82e81babc890542677bc90b35bd74" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/687b5bb83c79750e4c84ca487c66f9372b5d17a6" alt=""><figcaption></figcaption></figure>

Accéder à la `/_cat/indices?` L’URL renvoie une liste d’indices avec leurs UUID. Pour extraire le contenu d’un indice, utilisez l’URL suivante :

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

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

**Filtrage des données avec Curl**

En utilisant les `citations` de l’indice et en filtrant sur le mot-clé du défi, des informations pertinentes sont trouvées :

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

<figure><img src="/files/5535803dce423803e769ac7d3d57768a5cc78a00" alt=""><figcaption></figcaption></figure>

**Décodage de chaînes encodées en Base64**

Deux chaînes encodées en base64 sont récupérées. Leur décodage révèle les identifiants :

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

<figure><img src="/files/818e627ab435157f285e6880ef9e8de2e042584f" alt=""><figcaption></figcaption></figure>

**Utilisateur :** `security`/ **Mot de passe :** `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/fr/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.
