keyboard_arrow_up

title: Writeup HeroCTF v3 - Happy the Boss
date: Apr 27, 2021
tags: HeroCTF_v3 writeups pwn


Writeup HeroCTF v3 - Happy the Boss

Description:

Happy the cat is the worse boss you'll ever face.
Game is harder than Darksouls.

What do we say already ? GIT GUD ?.

Oh btw, check the category well ! ;)
Format : Hero{}

Author : iHuggsy

Files:

HappyBossFight.exe


So, we have a PE executable here. Let's first execute it and see what we got:
HappyBossFight_intro.png

If we try to hit our dear Happax, here's what we have:
HappyBossFight_test_hit.png

We hit him with 654 damage. Remember well this number, it will be useful in a few minutes.

After dealing with our damage, the cat kill us and the program stop.

Quick review of the other options:

Let's have a basic check of the reversed binary's main function:
HappyBossFight_reverse.png

Without even trying to understand the program, we can see space in memory (var_1bh) set to the value of our damage:
HappyBossFight_damage.png

We try to modify this value to something greater to check if there is any modification protection in the program:
HappyBossFight_modify.png

Let's see what we get now:
HappyBossFight_win.png

Here is the flag!

Flag: Hero{ltNPdnDjgqKQghQbQrRH}

Author: Ooggle