MayADevBe Blog

A Blog about Computer Science

OverTheWire Bandit Level 10 -> 11 - Walkthrough

Previous Level: Level 10


Login

SSH: ssh bandit10@bandit.labs.overthewire.org -p 2220

Password: truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk

Task

The password for the next level is stored in the file data.txt, which contains base64 encoded data.

A little bit of Theory

Base64 is a binary-to-text encoding scheme. It can often be recognised by equal signs at the end of the data. However, this is not always the case. Linux has a command called base64 that allows for encoding and decoding in Base64. For decoding, we need to use the flag -d.

Solution

The base64 command allows files as input, so we just need to use the command on the file.

1
2
3
4
bandit10@bandit:~$ cat data.txt
VGhlIHBhc3N3b3JkIGlzIElGdWt3S0dzRlc4TU9xM0lSRnFyeEUxaHhUTkViVVBSCg==
bandit10@bandit:~$ base64 -d data.txt
The password is IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR

https://overthewire.org/wargames/bandit/bandit11.html


Next Level: Level 12


Share on: