tutorial · bandit

Bandit Level 15

Send the current password to localhost:30000 using netcat.
banditncportslocalhost
Optional narration
Marks this level complete in your browser.

Goal

Retrieve the next password by submitting the current level’s password to port 30000 on localhost.

Hints

  • localhost means “this machine”.
  • nc (netcat) can send data to a TCP port.
  • You can type/paste the password interactively or pipe it.
Solution (click to reveal)
  1. SSH in:
ssh bandit15@bandit.labs.overthewire.org -p 2220
  1. Connect to the local service:
nc localhost 30000
  1. Paste the current password and press Enter.

The service should return the password for Level 16.

Alternative (pipe):

echo "<current-password>" | nc localhost 30000

Notes

  • If nc isn’t installed, try ncat.
  • If it connects but echoes, you might be on the wrong port (double-check the level goal).