Bandit Level 11 β†’ Level 12

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

ls
cat data.txt

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:

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)

Here is the password for the next user.

Last updated