1 min read

[CTF] WU - Labyrinth

CTF InterCampus Ynov 2024

Difficulty Level : Very Easy

Challenge Category : Reverse

Description :

A mysterious labyrinth awaits you, filled with difficult choices, dead-ends and dangers at every turn. Can you find the hidden key to the final boss and the legendary treasure ?

Solution Steps

First, you need to decompile the binary and locate the main() function.

While exploring the labyrinth() function, which contains many conditions, we discover an interesting function call: fight_final_boss().

In the fight_final_boss() function, we observe the condition required to obtain the flag: possessing the legendary_sword.

Returning to the main() function, the interesting condition is if (v4 == 999), which triggers a call to the hidden_function().

This is the way to obtain the legendary_sword. Now, we can fight the boss and retrieve the flag.