Don't Go Overboard



Solution

For this challenge, you need to find the right offset so that it will overflow the buffer.

So, I found it at 30 bytes but it still doesn't give me the flag😥

I decompile the code using Ghidra and look at the main function.

At line 16, the program checks the argument of 0 and 5.

So, I include 05 in my payload, which is 30 bytes of the letter a.

Like this aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa05


Flag

CURTIN_CTF{T@RG3TT3D_0V3RF10W}

Last updated