Introduction to Brooklyn Nine Nine CTF
Welcome to the Brooklyn Nine Nine CTF Walkthrough! In this guide, we’ll explore step-by-step how to conquer challenges inspired by the popular TV show. Whether you’re a seasoned cybersecurity enthusiast or a beginner eager to learn, this walkthrough will break down each task into simple, easy-to-follow steps. Get ready to test your skills, unravel clues, and emerge victorious in the ultimate cyber adventure based on Brooklyn Nine Nine!
Setup Environment
TryHackMe | Brooklyn Nine Nine
TryHackMe is an online platform for learning and teaching cyber security, all through your browser.
tryhackme.com
![Brooklyn Nine Nine](https://reconforce.in/blog/wp-content/uploads/2024/03/0-Uzndi32eyDlJsvSs.jpg)
- Via VulnHub: Download Brooklyn Nine Nine machine onto your local device, install it on a virtualization platform such as VirtualBox, configure the network settings, and initiate the attack.
- Through TryHackMe: Alternatively, access to this machine is possible via TryHackMe. Download the VPN configuration file to your device and utilize openvpn with the specified command:
![](https://reconforce.in/blog/wp-content/uploads/2024/02/Screenshot_20240202_120545-2.png)
You should see this line at the end of the code…
![](https://reconforce.in/blog/wp-content/uploads/2024/02/Screenshot_20240202_121026.png)
Alternatively, leverage the Attackbox offered by THM. A VPN connection is necessary since both our machine and the target machine need to be on the same network for effective attacks.
Once all prerequisites are in place, we’re set to initiate the scan on the target machine.
Brooklyn Nine Nine CTF Challenges
Scanning IP with Nmap
After setting up the machine, our initial step is to scan its IP address using nmap. You can do this by running the command provided below:
nmap -v -sC <Machine IP>
Once the scanning is done, you can see that there is an FTP port opened…
![](https://reconforce.in/blog/wp-content/uploads/2024/03/2024-03-18_14-29.png)
So we can try an Anonymous FTP login and see if we can find something there.
ftp <Machine IP>
To retrieve the text file named note_to_jake.txt, simply type ‘get
‘ followed by the file name. Afterward, close the FTP service.
![](https://reconforce.in/blog/wp-content/uploads/2024/03/2024-03-18_14-35-1024x274.png)
![](https://reconforce.in/blog/wp-content/uploads/2024/03/2024-03-18_15-06-1024x115.png)
After reviewing the file, it appears that ‘Jake’ is a username. So we will use Hydra to perform a brute-force attack and attempt an SSH login.
![](https://reconforce.in/blog/wp-content/uploads/2024/03/2024-03-18_15-12-1024x199.png)
![](https://reconforce.in/blog/wp-content/uploads/2024/03/2024-03-18_15-15.png)
We successfully logged in via SSH. Once you get in the home directory then go in ‘holt‘ directory, you’ll find the user flag for our Brooklyn Nine Nine CTF.
![](https://reconforce.in/blog/wp-content/uploads/2024/03/2024-03-18_15-24.png)
Now for the second flag, type sudo -l for login root access…
![](https://reconforce.in/blog/wp-content/uploads/2024/03/2024-03-18_15-30-1024x115.png)
Type the below command to get the root flag…
sudo /usr/bin/less /root/root.txt
![](https://reconforce.in/blog/wp-content/uploads/2024/03/2024-03-18_15-32.png)
Great job finishing the Brooklyn Nine Nine CTF! Explore our other walkthroughs for more exciting CTFs.