码迷,mamicode.com
首页 > 其他好文 > 详细

overthewire中的krypton题目解法

时间:2015-09-05 19:06:53      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:

偶然看到一个开脑洞的网站,上面有很多有意思的题目,我捡了krypton练习了一下,感觉不错

地址:

http://overthewire.org/wargames/krypton

 

 

 

Krypton Level 0

Level Info

Welcome to Krypton! The first level is easy. The following string encodes the password using Base64:

S1JZUFRPTklTR1JFQVQ=

Use this password to log in to krypton.labs.overthewire.org with username krypton1 using SSH. You can find the files for other levels in /krypton/

【me】就一个base64编码,简单吧,key:KRYPTONISGREAT

ssh进去吧,next

 

Krypton Level 0 → Level 1

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!

【me】一个简单的替换密码,替换表

ABCDEFGHIJKLMNOPQRSTUVWXYZ
NOPQRSTUVWXYZABCDEFGHIJKLM

key:LEVEL TWO PASSWORD ROTTEN

easy,next

 

Krypton Level 1 → Level 2

Level Info

Substitution ciphers are a simple replacement algorithm. In this example of a substitution cipher, we will explore a ‘monoalphebetic’ cipher. Monoalphebetic means, literally, “one alphabet” and you will see why.

This level contains an old form of cipher called a ‘Caesar Cipher’. A Caesar cipher shifts the alphabet by a set number. For example:

plain:  a b c d e f g h i j k ... 
cipher: G H I J K L M N O P Q ...

In this example, the letter ‘a’ in plaintext is replaced by a ‘G’ in the ciphertext so, for example, the plaintext ‘bad’ becomes ‘HGJ’ in ciphertext.

The password for level 3 is in the file krypton3. It is in 5 letter group ciphertext. It is encrypted with a Caesar Cipher. Without any further information, this cipher text may be difficult to break. You do not have direct access to the key, however you do have access to a program that will encrypt anything you wish to give it using the key. If you think logically, this is completely easy.

One shot can solve it!

Have fun.

【me】着其实也是代替密码,看下密文:

OMQEMDUEQMEK

关键是找代替表,用encrypt程序一试就可出来:

abcdefghijklmnopqrstuvwxyz
MNOPQRSTUVWXYZABCDEFGHIJKL

key:caesariseasy

贴个图吧:

技术分享

今天先搞这几个,明天继续~~

 

overthewire中的krypton题目解法

标签:

原文地址:http://www.cnblogs.com/debuggger/p/4783567.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!