Previous Level: Level 14
Login
SSH: ssh -i sshkey.private bandit14@bandit.labs.overthewire.org -p 2220
Password: -
(Private Key from Level 14)
Task
The password for the next level can be retrieved by submitting the password of the current level to port 30000 on localhost.
A little bit of Theory
Localhost is a hostname and its IP address is ‘127.0.0.1’. It is used to access network services on the same device that is running these services.
nc
or netcat
is a command that allows to read and write data over a network connection. It can be used for TCP and UDP connections. To connect to a service (as client) on a network the command syntax is the following: nc <host> <port>
. To create a server that listens to incoming packets, the command looks like this: nc -l <port>
.
Solution
- First, we need to find the password for bandit14. The previous levels stated that the password is in /etc/bandit_pass/bandit14.
|
|
- Next, we need to submit the password to port 30000 on localhost. I used
nc
to connect to localhost port 3000 and write the password.
|
|
https://overthewire.org/wargames/bandit/bandit15.html
Next Level: Level 16