team-logo
Published on

BCACTF 6.0 - Skibidi

Authors

Solution

I was given given a file containing the following text:

The source file

It looked like a cipher or an esolang, so I started researching this using the file extension. I found these pages: GitHub and esolang.org

Using the information from those pages I wrote a simple converter that translates skibidi to Brainfuck:

convert = {
	"gyatt": "-",
	"sigma": "+",
	"ohio": ".",
	"skibidi": ">",
	"grimaceshake": "[",
	"rizz": "<",
	"fanumtax": "]",
	"blud": ","
}

code = input()
syms = code.split()
decode = "".join(convert.get(sym, '') for sym in syms)
print(decode)

This produced the following Brainfuck code:

The Brainfuck code

I used an online Brainfuck interpreter to run this code, which output the following string: bcactf{516m4_516m4_0n_7h3_w411_wh0_15_7h3_5k181d1357_0f_7h

It looked like a flag, it was missing the closing brace and the phrase was incomplete. Next, I looked for the whole phrase and found it here: allpoetry.com

So, the final flag was:

bcactf{516m4_516m4_0n_7h3_w411_wh0_15_7h3_5k181d1357_0f_7h3m_411}

Bonus

Below I am providing the binaries so you can practice, in case you are unable to find them elsewhere.

Download binaries.zip