"We found an old Nokia in a drawer. The screen is cracked, but the phone's debug log still shows the exact message." The handout is one line of multi-tap digits:
44 33 999 0 444 8 7777 0 6 33 0 8 44 33 0 333 555 2 4 0 444 7777 0 222 2 555 555 0 6 33 0 6 2 999 22 33
Insight
This is classic T9 multi-tap: each token is "key pressed N times," so the letter is index N-1
on that key's row, and 0 separates words.
KEYPAD = {"2":"ABC","3":"DEF","4":"GHI","5":"JKL","6":"MNO","7":"PQRS","8":"TUV","9":"WXYZ"}
Decoding token by token (len(tok)-1 indexes into the key's letters, 0 -> space):
HEY ITS ME THE FLAG IS CALL ME MAYBE
The old Nokia's cracked screen was literally telling its own "debug log" what to submit - the message names the flag outright.
1KEYPAD = {"2":"ABC","3":"DEF","4":"GHI","5":"JKL",
2 "6":"MNO","7":"PQRS","8":"TUV","9":"WXYZ"}
3SMS = ("44 33 999 0 444 8 7777 0 6 33 0 8 44 33 0 "
4 "333 555 2 4 0 444 7777 0 222 2 555 555 0 6 33 0 6 2 999 22 33")
5
6def decode(tokens):
7 out = []
8 for tok in tokens.split():
9 out.append(" " if tok == "0" else KEYPAD[tok[0]][len(tok) - 1])
10 return "".join(out)
11
12print(decode(SMS)) # HEY ITS ME THE FLAG IS CALL ME MAYBE
Flag
RxR{CALL_ME_MAYBE}