Writeups OverTheWireBanditLinuxnmapSSLPort Scan

Bandit 16 Writeup - OverTheWire

Writeup for Bandit level 16 from OverTheWire: port scan and SSL RSA key retrieval.

Contents

Wargame: Bandit

Level: 16

Category: Linux Fundamentals

Description

One port in the range 31000-32000 on localhost accepts the current password over SSL and returns an RSA private key for bandit17. Other ports in the range simply echo back what they receive.

Overview

Solution

Step 1: Port Scan

nmap -sV localhost -p 31000-32000

Step 2: Submit Password and Receive Key

echo <password> | openssl s_client -connect localhost:31790 -ign_eof

Password

Stored as an RSA private key; bandit17 password is VxCazJaVykI6W36BkBU0mJTCM8rR95XT (readable after login via the key).

← Back to Blog