CSAW 2013 Quals - Misc 50/50/300: Life
Misc 50 / 50
While the first ‘misc 50’ challenge from this year’s CSAW CTF qualification round was PCAP file, thus hinting that Wireshark or other tools might be necessary, a simple grep like the following was enough and presented you the flag on a silver platter.
grep -aE 'flag|key' networking.pcap
then gives you the following
[some protocol data] flag{d316759c281bf925d600be698a4973d5} [more protocol data]
For the second misc challenge, the same method works and it gives you the flag repeated a few times:
[some data] flag{f9b43c9e9c05be5e08ea163007af5144}.exe [more data]
Misc 300: Life
Misc 300 was one of the more straight-forward challenges and very close
in spirit to the OMGACM
challenges from this year’s DEFCON quals. Upon
connecting to the server at 128.238.66.216:45678, you were shown something
similar to the following:
##### Round 1: 25 Generations #####
#######################
# * #
#* * #
# * * #
# * ** * ***#
# ** * ** #
#** * * #
# * * #
# * * #
# * * * * #
# * * #
# * * #
# * * #
# * #
# ** #
# * #
# #
# * #
# ** #
# * * *#
# * * ** * #
#######################
If you take the name of the challenge “Life” as a hint and if you have seen Conway’s Game of Life in your life before, the challenge becomes pretty straightforward and the only thing you need to be aware of is that the boundary of the world does not wrap but is constant instead (a simple parameter change for linear convolution in line 23). A last thing to keep in mind is that had to respond quickly or the connection was terminated for being ‘Too slow!’, you were given only a few seconds per round to parse the output and send the world advanced by the given number of generations back.
|
|
After we empirically tested how many rounds we actually needed to simulate, we ran a less clean version of the same code on the game server and got the key!
Congratulations!You made it!Here's your prize: key{that comp sci assignment was useful after all}