about summary refs log blame commit diff
path: root/users/wpcarro/scratch/picoctf/challenge_156.py
blob: 8c87a1ce7694e62163d5bb98cb2a94108828c85b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                              
bytestring = [
    112, 105, 99, 111, 67, 84, 70, 123, 103, 48, 48, 100, 95, 107, 49, 116,
    116, 121, 33, 95, 110, 49, 99, 51, 95, 107, 49, 116, 116, 121, 33, 95, 57,
    98, 51, 98, 55, 51, 57, 50, 125, 10,
]

def decode(xs):
    result = []
    for x in xs:
        result.append(chr(x))
    return "".join(result)

print(decode(bytestring))