Bait A Phish
Bait A Phish
Security Pulse
tutorial · bandit

Bandit Level 17

Scan localhost ports 31000–32000, find the TLS service that returns credentials.
banditnmaptlsports
Narration (cached)
Marks this level complete in your browser.

Goal

A service listening on one port in 31000–32000 will return the next credentials.

But first:

  1. Find which ports are open
  2. Identify which of those speak TLS
  3. Send your current password to the correct one

Hints

Solution (click to reveal)
  1. SSH in:
ssh bandit17@bandit.labs.overthewire.org -p 2220
  1. Scan the range:
nmap -p 31000-32000 localhost
  1. For each open port, check if it’s TLS:
openssl s_client -connect localhost:<port>

If it’s not TLS, you’ll usually get garbage / handshake failure.

  1. When you find the TLS-speaking port that returns credentials, submit your current password (paste it after connecting).

The response will include the credentials for the next level.

Notes

nmap -sV -p 31000-32000 localhost
Bandit Level 16Bandit Level 18