Home CTFs | 404CTF2023 | Reverse | L'Inspiration en images
Post
Cancel

CTFs | 404CTF2023 | Reverse | L'Inspiration en images

Context

context

We are given an executable that creates a painting.

Here is the painting:

painting

On the screen, we only see the bottom right of the painting. In fact the painting is entirely black. We can discover the content with the cursor. It’s like if it’s dark and the cursor is a flashlight. Here my cursor is in the bottom right to take the screen shot.

We have to find the color in the background of the painting.

Resolution

I analyzed the executable with Ghidra.

The main function is long with a lot of variables. We will not analyze everything.

Line 62, the window is create:

window

Line 186, the “Clear Color” is defined. It’s the default of the window, before adding things to it. It is the background color we are looking for.

color

In hex: 0x3e4ccccd,0x3e99999a,0x3e99999a,0x3f800000

In float: 0.2, 0.3, 0.3, 1

Flag: 404CTF{vec4(0.2,0.3,0.3,1)}

This post is licensed under CC BY 4.0 by the author.