Home CTFs | FCSC2023 | Intro | SPAnosaurus
Post
Cancel

CTFs | FCSC2023 | Intro | SPAnosaurus

SPAnosaurus

image

In this chall we had 3 files but only the image was useful. The above code makes us understand that this is a recursive function. The image of the signals, as said in the chall desciption, are the electrical consumsion of the computer when runing the above function.

We notice that the more calculation is used when we are in the else statement. This only happen when the number is odd. So when we look at the graph, we can easily understand that the spikes apear when the odd calculation is done. The chall description tells us that the number 2727955623 is equal to 10100010100110010100110010100111 in binary. Which we can find on the graph:

image

Knowing that, we can find the value of the admin trace:

image

And so, because 2327373741 the flag is FCSC{2327373741}

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