> 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/2025/404ctf-2025/retro-ingenierie/cbizarre-2-2.md).

# Cbizarre \[2/2]

**Catégorie:** Rétro-Ingénierie - **Difficulté:** Intro

{% file src="/files/IzjScWfY57q3wCsV2CL7" %}

**Description:**

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

Solution:

Tout comme le [challenge précédent](/2025/404ctf-2025/retro-ingenierie/cbizarre-1-2.md), nous allons utiliser [DogBolt](https://dogbolt.org/) afin de désassembler rapidement notre petit binaire :&#x20;

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

Ici les conditions de vérifications sont plus longues et nous n'avons pas de lien PasteBin directement.\
Mais ce n'est pas un souci, nous allons analyser rapidement comment est validé le flag avec ce script.

Si nous prenons toutes les conditions, voici ce que nous voyons :&#x20;

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

Nous allons donc remettre dans l'ordre afin d'obtenir la bonne valeur qui remplira toutes les conditions et nous lancerons le programme :&#x20;

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

Donc si nous lançons le programme avec cette valeur, nous obtenons le flag :&#x20;

<figure><img src="/files/2QztTiKZfneX9HRnf6wn" alt=""><figcaption></figcaption></figure>

<details>

<summary>🚩FLAG</summary>

`404CTF{Cg00d&slmpL3}`

</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/2025/404ctf-2025/retro-ingenierie/cbizarre-2-2.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.
