What is it? @.@

Here is the place where I record some tactics about wargame, systems, and other security issues.

2014-02-05

OverTheWire - Krypton - Level 0 to Level 1

Description:

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:
  1. [Comment] Using SSH to connect the server
  2. sp@simple-plan:~|=> ssh krypton1@krypton.labs.overthewire.org
    ...
    krypton1@krypton.labs.overthewire.org's password: KRYPTONISGREAT
  3. [Comment] Using cd command to change the shell working directory
  4. krypton1@melinda:~$ cd /krypton
  5. [Comment] Using ls command to list directory contents
  6. krypton1@melinda:/krypton$ ls
    krypton1  krypton2  krypton3  krypton4  krypton5  krypton6
  7. [Comment] Using cd command to change the shell working directory
  8. krypton1@melinda:/krypton$ cd krypton1/
  9. [Comment] Using ls command to list directory contents
  10. krypton1@melinda:/krypton/krypton1$ ls
    README  krypton2
  11. [Comment] Using cat command to output file's contents
  12. krypton1@melinda:/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!
    
  13. krypton1@melinda:/krypton/krypton1$ cat krypton2
    YRIRY GJB CNFFJBEQ EBGGRA
  14. [Comment] Utilizing the tr command to achieve ROT13
  15. [Comment] Using alias to create shortcuts for commands
  16. krypton1@melinda:/krypton/krypton1$ alias rot13="tr a-zA-Z n-za-mN-ZA-M"
  17. krypton1@melinda:/krypton/krypton1$ cat krypton2 | rot13 
    LEVEL TWO PASSWORD ROTTEN
  18. [Comment] It's done! Let's go to the next level!

2 comments:

  1. Interesting.... I did it manually.... but I didn't know I could do that with alias...

    ReplyDelete