OverTheWire Krypton Guide

here's how to solve the krypton level 1 → 2

Back to the Krypton Guides

Previous Level Guide: Krypton Level 0 → 1


Access

SSH: ssh krypton1@krypton.labs.overthewire.org -p 2231

Password: KRYPTONISGREAT

Info

The password for level 2 is in the file ‘krypton2’. It is ‘encrypted’ using a simple rotation. It is also in non-standard ciphertext format. When using alpha characters for cipher text it is normal to group the letters into 5 letter clusters, regardless of word boundaries. This helps obfuscate any patterns. This file has kept the plain text word boundaries and carried them to the cipher text. Enjoy!

Theory

Last time we deciphered the password to enter this level, which was really simple since it was Base64. To get the password for the next level, the instructions say to go into the folder level (krypton1) inside /krypton/ and do something with the file krypton2 to then get the password. To get to the location specified in the description of these last two levels we'll use cd:

cd /krypton/krypton1

Solution

Now that we are logged in the SSH from the last level, we can use cd to go to the level folder and see what's there:

~$ cd /krypton/krypton1

/krypton/krypton1$ ls -la
total 16
drwxr-xr-x 2 root     root     4096 Sep 19 07:09 .
drwxr-xr-x 9 root     root     4096 Sep 19 07:10 ..
-rw-r----- 1 krypton1 krypton1   26 Sep 19 07:09 krypton2
-rw-r----- 1 krypton1 krypton1  882 Sep 19 07:09 README

/krypton/krypton1$ cat README
Welcome to Krypton!

This game is intended to give hands on experience with cryptography
and cryptanalysis.  The levels progress from classic ciphers, to modern,
easy to harder.

Although there are excellent public tools, like cryptool,to perform
the simple analysis, we strongly encourage you to try and do these
without them for now.  We will use them in later excercises.

** Please try these levels without cryptool first **


The first level is easy.  The password for level 2 is in the file
'krypton2'.  It is 'encrypted' using a simple rotation called ROT13.
It is also in non-standard ciphertext format.  When using alpha characters for
cipher text it is normal to group the letters into 5 letter clusters,
regardless of word boundaries.  This helps obfuscate any patterns.

This file has kept the plain text word boundaries and carried them to
the cipher text.

Enjoy!

/krypton/krypton1$ cat krypton2
YRIRY GJB CNFFJBEQ EBGGRA

So there's two files in this initial level, first the README which tells us a bit more about these levels and then says that the file "krypton2" is encrypted in ROT13, which is the most common rotation of the caesar cipher, where it makes the letters of the alphabet swap places by the number, so if it has a +1, A becomes Z, B becomes A, C becomes B, etc. You can do this from an online decoder, but I'll use the terminal instead because I'm cool. Anyway, this command has been used in other guides in the past so am not gonna explain it:

/krypton/krypton1$ cat krypton2 | tr 'A-Za-z' 'N-ZA-Mn-za-m'
LEVEL TWO PASSWORD ROTTEN

And that's the password! Now we should be good to go to the next level.

https://overthewire.org/wargames/krypton/krypton1.html
Next Level Guide: Leviathan Level 2 → Level 3