OverTheWire: Krypton Level 1

S.P.
SecTTP
Published in
2 min readApr 2, 2019

http://overthewire.org/wargames/krypton/krypton1.html

Level 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!

Solution

Use the following information to login the server.

  • Username: krypton1
  • Password: KRYPTONISGREAT
  • Host: krypton.labs.overthewire.org
  • Port: 2222
$ ssh krypton1@krypton.labs.overthewire.org -p 2222
_ _
| | ___ __ _ _ _ __ | |_ ___ _ __
| |/ / '__| | | | '_ \| __/ _ \| '_ \
| <| | | |_| | |_) | || (_) | | | |
|_|\_\_| \__, | .__/ \__\___/|_| |_|
|___/|_|
a http://www.overthewire.org wargame.
krypton1@krypton.labs.overthewire.org's password:
KRYPTONISGREAT

First, we need to find out where the ‘krypton2’ file is located.

krypton1@krypton:~$ ls
krypton1@krypton:~$ ls /
README.txt boot dev home lib lib64 media opt root sbin sys usr bin d etc krypton lib32 libx32 mnt proc run srv tmp var
krypton1@krypton:~$ cd /krypton/
krypton1@krypton:/krypton$ ls
krypton1 krypton2 krypton3 krypton4 krypton5 krypton6
krypton1@krypton:/krypton$ cd krypton1
krypton1@krypton:/krypton/krypton1$ ls
README krypton2
krypton1@krypton:/krypton/krypton1$ cat krypton2
YRIRY GJB CNFFJBEQ EBGGRA

Check out the README file.

krypton1@krypton:/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!
krypton1@krypton:/krypton/krypton1$

Now, we know that the cipher text is stored in krypton2 file and encrypted using a simple rotation called ROT13.

Let’s decrypt it.

krypton1@krypton:/krypton/krypton1$ alias rot13='tr a-zA-Z n-za-mN-ZA-M'
krypton1@krypton:/krypton/krypton1$ cat krypton2 | rot13
LEVEL TWO PASSWORD ROTTEN

Got it!

--

--