C3

Description

This is the Custom Cyclical Cipher!Download the ciphertext herearrow-up-right. Download the encoder herearrow-up-right. Enclose the flag in our wrapper for submission. If the flag was "example" you would submit "picoCTF{example}".

The encoder given was,

import sys
chars = ""
from fileinput import input
for line in input():
  chars += line

lookup1 = "\n \"#()*+/1:=[]abcdefghijklmnopqrstuvwxyz"
lookup2 = "ABCDEFGHIJKLMNOPQRSTabcdefghijklmnopqrst"

out = ""

prev = 0
for char in chars:
  cur = lookup1.index(char)
  out += lookup2[(cur - prev) % 40]
  prev = cur

sys.stdout.write(out)

So after seeing the previous challenge, I turned to ChatGPT, which after a bit of back and forth, I obtained this script:

When run, you should be able to obtain the following script from the ciphertext:

As we can see, we obtained a Python2 script which if we run,

We obtain the flag of

Last updated