Skip to main content

Settings

Color Mode

Theme Skin

Background

Appearance preferences are saved in this browser only.

Environment

Current Environment Production

Built with JEKYLL_ENV=production. Changes require deployment.

Quick Links

Theme & Build

Jekyll v3.10.0
Last BuildNov 24, 17:25

Page Location

Page Info

Layout default
Collection wargames
Path _wargames/bandit/bandit16.md
URL /wargames/bandit/bandit16/
Date 2026-04-07

Bandit Level 16

Bandit Level 16 — talk to a TLS-encrypted service on localhost using openssl s_client.

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_client reports but still lets you use.
  • openssl s_client -connect HOST:PORT is a netcat-like client for TLS.
  • Surprising words. If you see KEYUPDATE or RENEGOTIATING, s_client interpreted a line you sent as one of its own commands. Read the “CONNECTED COMMANDS” section of man s_client and look at the quiet-mode options.

How to approach it

  1. Connect to the port given and inspect the certificate details it prints.
  2. Send the password and read the reply.
  3. 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.