> For the complete documentation index, see [llms.txt](https://writeups.ayweth20.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://writeups.ayweth20.com/2023/404ctf-2023/cloud/le-sot.md).

# Le Sot

**Catégorie:** Cloud - **Difficulté:** Intro

**Description:**

<figure><img src="/files/6PjOJXGvSCBn2I8hbFXt" alt=""><figcaption></figcaption></figure>

**Solution:**

Pour ce challenge, nous avons 2 informations qui nous sont utiles : 1 endpoint et 1 bucket.

N'y connaissant quasiment rien en endpoint S3, nous allons donc faire des recherches.\
En recherchant [quelques mots](https://www.google.com/search?q=cloud+endpoint+with+bucket+ctf\&oq=cloud+endpoint+with+bucket+ctf\&aqs=edge..69i57j0i546.12186j0j1\&sourceid=chrome\&ie=UTF-8) de la catégorie et pourquoi pas un writeup, nous trouvons ces résultats :&#x20;

<figure><img src="/files/4unsmTJQLXxyEvvTdm7p" alt="" width="563"><figcaption></figcaption></figure>

Le [deuxième lien](https://ctftime.org/writeup/29387) est justement un writeup d'un ancien CTF ayant eu lieu en 2021.\
En regardant la première solution, tout correspond à notre challenge :&#x20;

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

Il y montre comment combiner nos 2 parties pour accéder à la bonne ressource.\
Faisons donc de même avec nos éléments : `https://<Bucket>.<Endpoint>` ce qui donne ceci : \
<https://cloud-intro-challenge.s3.gra.io.cloud.ovh.net/>

En allant sur ce lien nous arrivons sur cette page :&#x20;

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

Nous pouvons voir qu'un fichier nommé les-moutons.json existe. Alors rendons-nous sur la page suivante (<https://cloud-intro-challenge.s3.gra.io.cloud.ovh.net/les-moutons.json>) pour voir ce que nous pouvons y trouver :&#x20;

En allant sur la page, nous trouvons le flag en bas du document .json :&#x20;

<figure><img src="/files/vmDLgH3PP6IEzRDHAAvQ" alt="" width="354"><figcaption></figcaption></figure>

<details>

<summary>🚩 FLAG</summary>

```
404CTF{D35_m0utOns_D4n5_13s_NU@g3s}
```

</details>


---

# 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://writeups.ayweth20.com/2023/404ctf-2023/cloud/le-sot.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.
