Krypton Level 1 β Level 2

As mentioned in the previous challenge description, all files for challenges will be stored under /krypton/ directory.
cd /krypton/krypton1
ls
cat README
cat krypton2

So for the next user's password, it is encoded with rot13 also known as Caesar cipher.
We can decrypt it with python:
Encoded_String = "YRIRY GJB CNFFJBEQ EBGGRA"
Decoded_String = ""
for char in Encoded_String:
if char.isupper():
Decoded_String += chr((ord(char) - ord('A') + 13) % 26 + ord('A'))
else:
Decoded_String += char
print(Decoded_String)
vim script.py
:wq
cat script.py
python3 script.py

Or using cyberchef:

We can brute force the amount of rotations:
Encoded_String = "YRIRY GJB CNFFJBEQ EBGGRA"
for rotate in range(26):
Decoded_String = ""
for char in Encoded_String:
if char.isupper():
Decoded_String += chr((ord(char) - ord('A') + rotate) % 26 + ord('A'))
else:
Decoded_String += char
print(Decoded_String)
vim script.py
:wq
cat script.py
python3 script.py

That is the password for the next user: ROT***.
Last updated