Brooklyn Nine Nine
Task 1: Deploy and get hacking

User flag
First, let's scan the target using
nmap.
There are three open ports:
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.txtfile to our machine using thegetcommand.
Let's check what is in the
note_to_jake.txtfile.
The only service remaining is SSH. That means that the user
jakehas a weak SSH password.Using
hydra, we can brute force the password.
Now we know that for the user
jake, the password is987654321.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
sudoprivileges thejakehas.
We can got to GTFOBins to find an exploit for the
lessbinary.

Copy and paste the
Sudoexploit in the terminal.
You will have to press
ENTERonce again after entering the command.
Answer
Last updated
Was this helpful?