# 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: 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:

```
GET https://writeups.ayweth20.com/2025/404ctf-2025/retro-ingenierie/cbizarre-2-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
