Cryptography

The Numbers

picoCTF 2019

17 January 2020

Points: 50

Problem :lock:

The numbers… what do they mean?

Hint :bulb:

The flag is in the format PICOCTF{}

Solution :key:

We have a set of numbers with a { and } among them. Seems to be the flag but in integer form.

Since the hint is that the chars are in caps, we made a py script to just add the value 64 (because 65 is ASCII value of A) to all integers so that they become ASCII values of capital letters, then print them all.

numbers = [
    16,9,3,15,3,20,6,'{',20,8,5,
    14,21,13,2,5,18,19,13,1,
    19,15,14,'}'
    ]
flag = ""

for num in numbers:
    if num != '{' and num != '}':
        flag += chr(64+num)
    else:
        flag += num

print flag

Download the py script here.

Flag :checkered_flag:

PICOCTF{THENUMBERSMASON}