PINK CTFMisc
Kosaken
Kosaken.txt is the lyrics of Dschinghis Khan's "Moskau" written as emoji, one lyric line per line.
- Competition
PINK CTF
- Category
- MiscEasy · estimated
- Source status
- Source-documented · not platform-verified
- Document
- PDF edition1 min read
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:
🧔🏻♂️🥂🙌 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, hey02
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:
🥂➡️🧱💥 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:
| Emoji | Name | Letter |
|---|---|---|
| 🍕 🇮🇹 👃 🔑 | Pizza, Italy, Nose, Key | PINK |
| 🫲 | Leftwards hand | { |
| 🍋 🐘 🦅 🌈 🐯 | Lemon, Elephant, Eagle, Rainbow, Tiger | LEERT |
| ➖ | Minus | _ |
| 🐶 ℹ️ ✉️ | Dog, Information, Envelope | DIE |
| ➖ | Minus | _ |
| 🍇 🦁 🍎 🌲 🐍 👀 🐇 | Grapes, Lion, Apple, Evergreen, Snake, Eyes, Rabbit | GLAESER |
| 🫱 | 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:
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
