From nmap, there are some service opened.

Local Picture

This is the web page.

Local Picture

When we click “GET FREE TRIAL”, it said that we need to provide a certificate.

Local Picture

Let’s deal with ftp first. For vsftpd 2.3.4, there is a vulnerability. I use the module in msf to create a backdoor.

Local Picture

It is a Psy shell. I use rlwrap for better editting.

Local Picture

There is user.txt in berlin’s directory, but we got permission denied.

Local Picture

In nairobi’s directory, I found a ca.key.

Local Picture

Back to http server, we export the certificate.

Local Picture

First, I get the public key from ca.key, and see if it is the right key. Then, I generate a client key, and create a certificate signing request.

Local Picture

I signed the certificate, create p12 certificate because firefox only accept p12.

Local Picture

I import the new certificate.

Local Picture

And boom, we’re in.

Local Picture

Select one of the season, there are many .avi files.

Local Picture

And there is a path traversal.

Local Picture

In ../.ssh, there is id_rsa.

Local Picture

Since we can download the file by accessing file/<base64 of filename>, I base64 encode the filename.

Local Picture

And download it successfully.

Local Picture

I use the key to connect to ssh as professor.

Local Picture

There are some weird files at professor’s directory.

Local Picture

With pspy, we see that root runs supervisord, and memcached.js is executed as well, which is the command in memcached.ini.

Local Picture

Local Picture

I create a new memcached.ini containing reverse shell command, and after a while, I got the reverse shell as root.

Local Picture