Points: 100
Category: Binary

Find the string before randomizing.


Hint: None

Write up

In the main function we can see that,

Before the srand function is called , the program pushes some of the values in consecutive memory locations. The commands are of the type -



It means that , the value ` 0x53 ` is pushed in the memory location ` 0x24 . 0x53 ` when converted from hexadecimal to ASCII is ā€˜Sā€™ .

Since it is a string of hardcoded values, when we convert it to ASCII (and neglecting the \0 ), we get the flag-


SECCON{Welcome to the SECCON 2014 CTF!}