Level 14 → 15

Level Goal

The password for the next level can be retrieved by submitting the password of the current level to port 30000 on localhost.

Write-Up

  1. The password for the bandit14 level: MU4VWeTyJk8ROof1qqmcBPaLh7lDCPvS

  2. Use Netcat nc to connect to localhost on port 30000 and submit the password:

echo "MU4VWeTyJk8ROof1qqmcBPaLh7lDCPvS" | nc localhost 30000
  • echo "MU4VWeTyJk8ROof1qqmcBPaLh7lDCPvS": Outputs the bandit14 password

  • |: Pipes the output to the next command

  • nc localhost 30000: Connects to localhost on port 30000 and sends the piped input

echo "MU4VWeTyJk8ROof1qqmcBPaLh7lDCPvS" | nc localhost 30000

The server responds with the password for the next level: 8xCjnmgoKbGLhHFAZlGE5Tmu4M2tKJQo

  1. Access the next level:

ssh [email protected] -p 2220

Enter the password when prompted.

Lessons Learned

  • Netcat nc is a versatile tool for reading from and writing to network connections

  • Local services can be accessed using localhost as the hostname

  • Piping commands can be used to send data to network services

-- Othmane

Last updated

Was this helpful?