Previous Level: Level 14
ssh -i sshkey.private firstname.lastname@example.org -p 2220
(Private Key from Level 14)
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.
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>.
- 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
ncto connect to localhost port 3000 and write the password.
Next Level: Level 16