diff options
author | William Carroll <wpcarro@gmail.com> | 2021-12-29T16·09-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2021-12-29T19·34+0000 |
commit | 5c0ec720afc83761d1afda44e9b6acd30375d898 (patch) | |
tree | 45b8d18a0f53420038415855e1aa8684712b142d /users/wpcarro/scratch/picoctf/challenge_156.py | |
parent | d3c20a44d37f0246dc9d848e6c63da2839f8dc4f (diff) |
feat(wpcarro/scratch): Upload my solutions to picoCTF challenges r/3500
Just getting my feet wet... Change-Id: Ia1db0c69fe7d5ea5cb5585853d0688ef97f2680a Reviewed-on: https://cl.tvl.fyi/c/depot/+/4739 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/scratch/picoctf/challenge_156.py')
-rw-r--r-- | users/wpcarro/scratch/picoctf/challenge_156.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/users/wpcarro/scratch/picoctf/challenge_156.py b/users/wpcarro/scratch/picoctf/challenge_156.py new file mode 100644 index 000000000000..8c87a1ce7694 --- /dev/null +++ b/users/wpcarro/scratch/picoctf/challenge_156.py @@ -0,0 +1,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)) |