Bandit Level 15
Bandit Level 15 — talk to a plain-text network service on localhost with netcat.
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 30000 on localhost.
Commands you may need to solve this level
ssh, telnet, nc, openssl, s_client, nmap
Helpful Reading Material
- How the Internet works in 5 minutes (YouTube) (Not completely accurate, but good enough for beginners)
- IP Addresses
- IP Address on Wikipedia
- Localhost on Wikipedia
- Ports
- Port (computer networking) on Wikipedia
Study guide
Level map: logged in as bandit14, find the password for bandit15.
What this level teaches
What a network service is, and how to talk to one directly.
Key ideas
- Client and server. A server listens on a port; a client connects and exchanges data. Here you are the client.
localhost(127.0.0.1) means “this very machine”, which makes it ideal for safe practice.- TCP. A reliable byte stream. Many simple protocols are just lines of text.
nc(netcat) opens a TCP connection and connects it to your keyboard and screen, so you can type to a service like a human protocol client.
How to approach it
- Connect to the port the Level Goal gives.
- Send the previous level’s password followed by a newline, and read the reply.
- Notice that anyone on the network path could read this exchange because it is unencrypted. The next level fixes that.
Why it matters
Every protocol you know (HTTP, SMTP, Redis) is text over a port, and netcat is the debugging tool for all of them.