Post

Lemon and Tangerine

Lemon and Tangerine

Description:

My mom told me to buy lemons and tangerines but she only speaks binary, I totally forgot which is label as β€œ1” or β€œ0”.

  • Category: Cryptography

Flag format: CTF{flag}

Solutions:

1
2
3
4
5
6
7
8
9
10
11
12
13
emoji_string = """
πŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸŠπŸŠπŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸ‹πŸŠπŸŠπŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸŠπŸŠπŸŠπŸŠπŸŠπŸ‹πŸŠπŸŠπŸŠπŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸ‹πŸ‹πŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸ‹πŸŠπŸŠπŸŠπŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸŠπŸ‹πŸŠπŸŠπŸŠπŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸŠπŸ‹πŸ‹πŸŠπŸ‹πŸ‹πŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸŠπŸŠπŸ‹πŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸŠπŸŠπŸ‹πŸŠπŸ‹πŸŠπŸŠπŸŠπŸŠπŸŠπŸ‹πŸŠπŸŠπŸ‹πŸ‹πŸ‹πŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸŠπŸŠπŸŠπŸŠπŸŠπŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸ‹πŸŠπŸŠπŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸ‹πŸŠπŸ‹πŸ‹πŸŠπŸ‹πŸ‹πŸ‹πŸ‹πŸ‹πŸŠπŸ‹πŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸ‹πŸ‹πŸŠπŸ‹πŸŠπŸŠπŸ‹πŸŠπŸ‹πŸ‹πŸŠπŸŠπŸŠπŸŠπŸŠπŸ‹πŸŠ
"""

def decode(emoji):
  emoji_map = {"🍊":"1","πŸ‹":"0"}
  binary = ""
  for e in emoji:
    binary+=emoji_map.get(e,"")
  return binary

flag = decode(emoji_string)
print(flag)

Output:: 0100001101010100010001100111101101101101010011110110110101011111011100110110001100110000001100010110010001100101011001000101111101101101001100110101111101100010001100110100100101101110010001110101111101100001010111110100010001010101010011010100001001000001010110100101101001111101

1
echo "0100001101010100010001100111101101101101010011110110110101011111011100110110001100110000001100010110010001100101011001000101111101101101001100110101111101100010001100110100100101101110010001110101111101100001010111110100010001010101010011010100001001000001010110100101101001111101" | perl -lpe '$_=pack"B*",$_'

Challenge Creation:

This challenge was inspired by the characters from the movie β€œBullet Train”.

This post is licensed under CC BY 4.0 by the author.