L’inspiration en images
In this challenge, we are given this executable. We need to recover the RGBA float values of the painting. But when we look at the paining, either by extracting the image using binwalk
or running the program, we see only a black background:
So I started looking at the code for something referring to the color and found that:
This is the only function that contains the word color
. So I looked at this function and found that the glad_glClearColor
function is part of the OpenGL
library and is used to specify the clear color for the color buffer. When you render graphics using OpenGL
, the color buffer holds the pixel data for the current frame being displayed. The glClearColor
function sets the color value that will be used to clear the color buffer before rendering the next frame.
So I decoded the hexadecimal values 0x3e4ccccd,0x3e99999a,0x3e99999a,0x3f800000
using the online tool Scadacore and found the float values:
So the flag is 404CTF{vect4(0.2,0.3,0.3,1.0)}