Bandit Level 16
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
Level Goal¶
The password for the next level can be retrieved by submitting the password of the current level to port 30001 on localhost using SSL/TLS encryption.
Helpful note: Getting "DONE", "RENEGOTIATING" or "KEYUPDATE"? Read the "CONNECTED COMMANDS" section in the manpage.
Commands you may need to solve this level¶
ssh, telnet, nc, ncat, socat, openssl, s_client, nmap, netstat, ss
Helpful Reading Material¶
Study guide¶
Level map: logged in as bandit15, find the password for bandit16.
What this level teaches¶
TLS, the encryption layer behind HTTPS, and how to speak it by hand.
Key ideas¶
- TLS wraps TCP. The same text conversation takes place, but inside an encrypted, authenticated channel set up by a handshake.
- Certificates. A server proves its identity with a certificate. Lab servers often present self-signed ones, which
openssl s_clientreports but still lets you use. openssl s_client -connect HOST:PORTis a netcat-like client for TLS.- Surprising words. If you see
KEYUPDATEorRENEGOTIATING,s_clientinterpreted a line you sent as one of its own commands. Read the "CONNECTED COMMANDS" section ofman s_clientand look at the quiet-mode options.
How to approach it¶
- Connect to the port given and inspect the certificate details it prints.
- Send the password and read the reply.
- Compare this with the previous level to feel the difference between plain and encrypted channels.
Why it matters¶
Debugging HTTPS, mail or API connections often means using openssl s_client to see what the server really presents.