MayADevBe Blog

A Blog about Computer Science

OverTheWire Bandit Level 15 -> 16 - Walkthrough

Previous Level: Level 15


Login

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

Password: BfMYroe26WYalil77FoDi9qh59eK5xNr

Task

The password for the next level can be retrieved by submitting the password of the current level to port 30001 on localhost using SSL encryption.

A little bit of Theory

OpenSSL is a library for secure communication over networks. It implements the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) cryptographic protocols that are, for example, used in HTTPS to secure the web traffic.

openssl s_client is the implementation of a simple client that connects to a server using SSL/TLS.

Solution

Since the task states that the password can be retrieved using SSL encryption, I connect to the localhost server with the OpenSSL client and send the password from this level. The server then sends back the password for the next level.

1
2
3
4
5
bandit15@bandit:~$ openssl s_client -connect localhost:30001
...
BfMYroe26WYalil77FoDi9qh59eK5xNr
Correct!
cluFn7wTiGryunymYOu4RcffSxQluehd

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


Next Level: Level 17


Share on: