# caesar

starting off the challenge we were given a file

<figure><img src="https://2781327171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMuMceEGBvWN37BjlZKgv%2Fuploads%2FF59GvHInq2R9VJ61MKgS%2Fimage.png?alt=media&#x26;token=d4278ab6-7fa3-4156-831f-b85c246daa5d" alt=""><figcaption></figcaption></figure>

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

```python
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+"}")
```

<figure><img src="https://2781327171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMuMceEGBvWN37BjlZKgv%2Fuploads%2FWTwQ4r4T2kWYfuhwtCVy%2Fimage.png?alt=media&#x26;token=b6f6a111-967b-4f98-911e-0697ee5301ae" alt=""><figcaption></figcaption></figure>

there was one readable flag

> picoCTF{crossingtherubicondjneoach}
