Home » CTF

Ghost in the Shellcode 2015 CTF – MTGO Writeup

19 January 2015 No Comment

Hello, world.

MTGO was a great, i loved that challenge.

And i haven’t solved anything like that before.

You are supplied with a file mtgo.py and you are supposed to exploit it’s crypto.

It uses current time as a seed, then uses random to get random numbers to shuffle the cards.

If you supply the same seed it will always get the same numbers, and order of the card.

So when you run mtgo.py it will give you the first seven cards of a shuffled deck. And you are supposed to give it back the following 13 cards (In the same order it has)

Here is mtgo.py
And here is unmtgo.py my solution

Your opinion matters!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.