Space Snacks

beginner | misc | 200 points

Find the answers to the treasure hunt to gain access to the cake in the space cafe.

Roten to the core

[20 points] You find a roten apple next to a piece of paper with 13 circles on and some text. What's the message?

Vg nccrnef lbh unq jung vg gnxrf gb fbyir gur svefg pyhr  
Jryy Qbar fcnpr pnqrg  
pgs{Lbh_sbhaq_gur_ebg}  
Npprff pbqr cneg 1: QO

Good ol' ROT13 :)

It appears you had what it takes to solve the first clue
Well Done space cadet
ctf{You_found_the_rot}
Access code part 1: DB

Flag: ctf{You_found_the_rot}

The roman space empire

[25 points] You find a page with a roman insignia at the top with some text what could it mean?

Jhlzhy ulcly dhz clyf nvvk ha opkpun tlzzhnlz.  
jam{Aol_vul_aybl_zhshk}  
jvkl whya: NW

Caesar cipher with shift 7.

Caesar never was very good at hiding messages.  
ctf{The_one_true_salad}  
code part: GP

Flag: ctf{The_one_true_salad}

The space station that rocked

[25 points] You hear the heavy base line of 64 speakers from the next compartment. you walk in and the song changes to writing's on the wall, there is some strange code painted on the wall what could it mean?

RXZlbiAgaW4gc3BhY2Ugd2UgbGlrZSB0aGUgYnV0dGVyeSBiaXNjdXQgYmFzZS4gY3Rme0lfbGlrZV90aGVfYnV0dGVyeV9iaXNjdWl0X2Jhc2V9IC4gQWNjZXNzIHBhcnQgMzogWEQ=

base64 decoding to the rescue!

Even  in space we like the buttery biscut base. 
ctf{I_like_the_buttery_biscuit_base} . Access part 3: XD

Flag: ctf{I_like_the_buttery_biscuit_base}

What the beep is that?

[25 points] You hear beeps on the radio, maybe someone is trying to communicate? Flag format: CTF:XXXXXX

.. -. ... .--. . -.-. - --- .-. / -- --- .-. ... . / .-- --- ..- .-.. -.. / -... . / .--. .-. --- ..- -.. / --- ..-. / -.-- --- ..- .-. / . ..-. ..-. --- .-. - ... .-.-.- / -.-. - ..-. ---... ... .--. .- -.-. . -.. .- ... .... ..--- ----- ..--- .---- / .- -.-. -.-. . ... ... / -.-. --- -.. . ---... / .--- --...

Beep boop morse code

INSPECTOR MORSE WOULD BE PROUD OF YOUR EFFORTS. CTF:SPACEDASH2021 ACCESS CODE: J7

Flag: CTF:SPACEDASH2021

The container docker

[25 points] You are now in the space cafe, the cake is in the container that should not be here. You can see random names on all the containers. What will Docker never name a container? Note: Please enter it as ctf{full_name}

A quick search reveals boring-wozniak as the answer. From Docker's source code:

if name == "boring_wozniak" /* Steve Wozniak is not boring */ {
	goto begin
}

Flag: ctf{boring_wozniak}

There might be more cake

[50 points] They ate then cake and left a note with a secret algorithm to unlock the cake treasury. We saw it happening at exactly January 1, 2030 11:23:45 AM... are you the visionary that can figure out the PIN code? PIN code generation algorithm:

int generatePin() {
srand(time(0));
return rand();
}

The time mentioned in the description is the seed. srand() takes time in the Unix timestamp, which is the number of seconds since January 1, 1970.

We can convert the provided timestamp using an online converter with the timezone set to GMT. The resulting timestamp is 1893497025.

This number can be used to complete the provided generation algorithm.

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int generatePin() {
	
	srand(1893497025);
	return rand();
}

int main()
{
	printf("%d\n", generatePin());
	return 0;
}

Running this gives us the PIN code, which is the flag for this challenge.

$ gcc -o pin pin.c
$ ./pin
1376299761

The program, pin.c, works perfectly on Linux, however returns incorrect output on Mac, possibly due to different implementations of gcc.

Flag: 1376299761

Stars in space

[30 points] The treasury consists of cake hidden on stars in space.

* ****  * * * *** ***  **	*  *  * ****  * ** *  ** ***  ** ***  ** * *  *   ** *	 *  * ** *  *   ** *	 *   **  *   *****  **** *  ***  *  ** * *	 * 

Replace the stars with 0s and the spaces with 1s.

0100001101010100010001100111101101101000011010010110010001100100011001010110111001011111011010010110111001011111011100110111000001100001011000110110010101111101

Converting the binary to text reveals the challenge flag.

Flag: CTF{hidden_in_space}

More writeups from Hacky Holidays: Space Race