caesar

Decrypt this message.

starting off the challenge we were given a file

inside was random strings based on the challenge name we just need to do a simple caesar cipher basiclly just shifts the char by some number i will create a simple script to bruteforce the process

flag = ''

with open('ciphertext', 'r') as a:
    flag += a.readline().strip()[8:-1]

print("start : "+flag)
num = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]
for i in num:
    temp = ''
    for j in flag:
        num = ord(j) + i
        if(num > ord('z')):
            num -= 26
        temp += chr(num)
    print("picoCTF{"+temp+"}")

there was one readable flag

picoCTF{crossingtherubicondjneoach}

Last updated