Skip to content
Adam Omar Saleh

PINK CTF placeholder badge (unofficial)PINK CTFMisc

Kosaken

Kosaken.txt is the lyrics of Dschinghis Khan's "Moskau" written as emoji, one lyric line per line.

Competition
PINK CTF placeholder badge (unofficial)PINK CTF
Category
MiscEasy · estimated
Source status
Source-documented · not platform-verified
Document
PDF edition1 min read

Brief

The challenge

Category
emoji
Points
50
Author
QWERTZ
File
Kosaken.txt

I feel like something doesnt belong here...

Challenge page
Challenge page

TL;DR

Kosaken.txt is the lyrics of Dschinghis Khan's "Moskau" written as emoji, one lyric line per line. Some lines have one extra emoji appended that doesn't belong to the lyric. Reading those intruders in order, and taking the first letter of each one's English name, spells the flag.

01

Recognising the song

The title "Kosaken" and the chorus give it away:

Text
🧔🏻‍♂️🥂🙌   Kosaken, hey hey hey, hebt die Gläser👩🏻🌸😍     Natascha, ha ha ha, du bist schön🏰🍻        Moskau, Moskau🥂➡️🧱💥    wirf die Gläser an die Wand🇷🇺😍🌍     Russland ist ein schönes Land🎉🎉🎉🎉🎉🙌 Ho ho ho ho ho, hey

02

Diffing the repeats

The chorus repeats several times, so the same lyric line shows up more than once. Comparing the copies shows that some have an extra emoji tacked on:

Text
🥂➡️🧱💥      vs  🥂➡️🧱💥👃     (Nose)❤️‍🔥🌌♾️      vs  ❤️‍🔥🌌♾️🔑     (Key)🇷🇺😍🌍       vs  🇷🇺😍🌍🌲      (Evergreen tree)🏰🍻          vs  🏰🍻🐯         (Tiger)

Lines that appear only once can be checked against the real lyrics. For example, 🥶🧊 is "kalt wie das Eis", so the 🍕 on that line is an intruder.

03

Reading the intruders

Taking the first letter of each intruder's English name, in file order, and reading the two hands as braces gives the flag:

EmojiNameLetter
🍕 🇮🇹 👃 🔑Pizza, Italy, Nose, KeyPINK
🫲Leftwards hand{
🍋 🐘 🦅 🌈 🐯Lemon, Elephant, Eagle, Rainbow, TigerLEERT
➖Minus_
🐶 ℹ️ ✉️Dog, Information, EnvelopeDIE
➖Minus_
🍇 🦁 🍎 🌲 🐍 👀 🐇Grapes, Lion, Apple, Evergreen, Snake, Eyes, RabbitGLAESER
🫱Rightwards hand}

"Leert die Gläser" means "empty the glasses", a nod to the song's "hebt die Gläser".

Solve script

solve.py finds each intruder in order and prints the line it sits on:

Text
line   4: 🥶🧊🍕                  -> 🍕 = Pline  16: 🥂👨🏻‍🤝‍👨🏼🍻🇮🇹          -> 🇮🇹 = Iline  20: 🥂➡️🧱💥👃               -> 👃 = N...line 103: 🕺💃🪑➡️🪵💥🫱             -> 🫱 = }​flag: PINK{LEERT_DIE_GLAESER}

Flag

Flag

PINK{LEERT_DIE_GLAESER}

Source-documented · not platform-verified

PDF edition

Writeup PDF

Formatted edition of this walkthrough, built from my source notes · 4 pages.