Writeup by Tian Cilliers of The Order of Bit (#1 South African CTF team!)
Chunk Norris is black belt in fast random number generation.
We are provided an address and port. Running netcat
on these tells us we need to find the number not matching (we have 3 attempts). We are then given a blob of base64 encoded data. Decoding this reveals a header of 78 9c
, meaning this is zlib compressed data. Decompressing gives us data with a JPEG file header, and viewing this image results in the following:
[Insert Image Here]
We are provided a file surprise
which we notice, after running xxd -l 100 surprise
, starts with the header 42 5a 68 39
. This is recognizable as a BZip2 zipped file. After unzipping it, we are left with an x86-64 ELF file. We throw this into our decompiler of choice and find that it performs a few actions:
surprise
with a section of data in the program XORed with the key, repeating every 13 lettersThis challenge requires writing a program in the given language that prints out itself. This is commonly known as a quine.
Assemblium uses 2 stacks namely the data stack and code stack, with the following being executed when an instruction gets popped off the top of the code stack:
Instruction | Result |
---|