Krypton Level 0 → Level 1

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 the files for other levels in /krypton/


Simple python program to convert Base64 to ascii.

#!/bin/python
import binascii

s = "S1JZUFRPTklTR1JFQVQ="
print (binascii.a2b_base64(s))

Running the program will result in the following output and using this password to login to level1 with ssh.

python krypton1.py
KRYPTONISGREAT

ssh krypton1@krypton.labs.overthewire.org

Let do this in bash as well since we will be working in the terminal a lot in these challenges.

#!/bin/bash
s="S1JZUFRPTklTR1JFQVQ="
echo $s | base64 --decode
echo

Additional Reference:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s