Skip to main content
  1. CTF Writeups/
  2. scriptCTF 2025/

Emoji

·
Misc 100 Pts 513 Solves Unicode Emoji
subzcuber
Author
subzcuber
i like to imagine i’m funny

Author: noob-abhinav

Emojis everywhere! Is it a joke? Or something is hiding behind it.


you were given out.txt which contained a string of meaningless emojis. Putting them in a Unicode decoder gave the hex values and it was immediately obvious that only the last couple of bytes were changing.

some playing around with that last byte helped me figure out that the last byte was just an offset away from the ascii character, and the prefixed bytes were useless

solve.py
1
2
3
4
5
6
7
with open("./out.txt", "r") as FILE:
    for line in FILE.readlines():
        code = line.strip()
        if code[0:2] == '81':
            print(chr(int(code, 16) - 0x8140), end='')
        else:
            print(chr(int(code, 16) - 0x8080), end='')

where out.txt was the hex values of the encoded emojis. this gave finally

scriptCTF{3m0j1_3nc0d1ng_1s_w31rd_4nd_fun!1e46d}
Reply by Email

Related

The Martian
Misc 50pts 647 Solves Binwalk
simple binwalk
Just Some Avocado
For 302pts 353 Solves Rockyou Fcrackzip Audacity Spectogram
my hashcat broke :(
pdf
For 100pts 508 Solves Pdf
encoded pdf stream