We start by enumerating the open ports with an nmap :

We notice that the certificate used for https contains several domain names, so we add them to the /etc/hosts file to access them:

Most of the domains are useless, but accessing the domain netops-dev.dodge.thm using https will bring up a blank page:

By analyzing the source code, we discover a php file that allows us to modify the firewall configuration:

By entering the sudo ufw disable command, we can disable the firewall rules, enabling us to reach port 21:

As anonymous access is enabled, we can access the files on the ftp share and discover a private ssh key which allows us to connect as a challenger:

An analysis of the command history reveals the following:

We then search for these files:

Displaying the posts.php script in the same directory, we find a character string encoded in base64:

Decoding it, we find the password for the cobra user.

An analysis of this user’s rights reveals the following:

A quick search on gtfobins then gives root access