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.