# Bandit Level 11 → Level 12

<figure><img src="https://1100854798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F94YmDHMJbD21F4uOcvHm%2Fuploads%2FZ0DAnSayA7OhznpGNTC8%2Fimage.png?alt=media&#x26;token=ccd4fd1d-1abb-43d8-910d-72fea3f22bae" alt=""><figcaption></figcaption></figure>

If we `ls`, and `cat` the data inside the data.txt file:

```bash
ls
```

```bash
cat data.txt
```

<figure><img src="https://1100854798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F94YmDHMJbD21F4uOcvHm%2Fuploads%2F9QwMIZmwRJhHaXOmmjYY%2Fimage.png?alt=media&#x26;token=21dea1ff-67ba-4846-a268-a16e9d0cb7ca" alt=""><figcaption></figcaption></figure>

As mentioned in the challenge description it is Caesar cipher, and the data has been shifted by 13 positions, we can write a simple python script to revert it to the original text or simply using cyberchef:

<figure><img src="https://1100854798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F94YmDHMJbD21F4uOcvHm%2Fuploads%2FpSlSvpXpTBgp0zizdJcQ%2Fimage.png?alt=media&#x26;token=ce6a4b21-afc0-4335-825f-6c9eca976803" alt=""><figcaption></figcaption></figure>

{% code overflow="wrap" %}

```python
encoded_text = "Gur cnffjbeq vf 7k16JArUVv5LxVuJfsSVdbbtaHGlw9D4"  
decoded_text = ""  
  
for i in range(len(encoded_text)):  
    if encoded_text[i].isupper():  
        decoded_text += chr(((ord(encoded_text[i]) - ord('A') - 13) % 26) + ord('A'))  
    elif encoded_text[i].islower():  
        decoded_text += chr(((ord(encoded_text[i]) - ord('a') - 13) % 26) + ord('a'))  
    else:  
        decoded_text += encoded_text[i]  
  
print(decoded_text)
```

{% endcode %}

<figure><img src="https://1100854798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F94YmDHMJbD21F4uOcvHm%2Fuploads%2FcbJGXbBZYm9Usa6BkTUL%2Fimage.png?alt=media&#x26;token=794a4c47-d116-4623-97aa-8dc50de4c5d0" alt=""><figcaption></figcaption></figure>

Here is the password for the next user.
