Brooklyn Nine Nine

Task 1: Deploy and get hacking

User flag

  • First, let's scan the target using nmap.

  • There are three open ports:

Port
Service

21

ftp

22

ssh

80

http

  • Let's scan all the directories using gobuster.

  • There seems to be nothing of interest in the web directories.

  • Let's login anonymously through FTP.

  • Let's check out the contents of this directory.

  • We can download the note_to_jake.txt file to our machine using the get command.

  • Let's check what is in the note_to_jake.txt file.

  • The only service remaining is SSH. That means that the user jake has a weak SSH password.

  • Using hydra, we can brute force the password.

  • Now we know that for the user jake, the password is 987654321.

  • Let's login through SSH using these credentials.

  • Let's go to the user holt.

  • We can now get the user flag.

Answer

Root flag

  • Let's check what sudo privileges the jake has.

  • We can got to GTFOBins to find an exploit for the less binary.

  • Copy and paste the Sudo exploit in the terminal.

  • You will have to press ENTER once again after entering the command.

Answer

Last updated

Was this helpful?