Skip to content
AO.GitHub
← All write-ups
FIELD NOTES / PORTFOLIO

Onsystemshelldredd

Platform: Proving Grounds · Difficulty: Easy

Reconnaissance

RustScan reported two open ports. The original note lists port 2 and port 61000; the subsequent FTP scan should be checked against the screenshot to confirm the FTP port.

Rustscan result

Service identification

Nmap identified FTP but did not identify the service on port 61000, including in a targeted follow-up scan.

Nmap scan 1 Nmap scan 2

Enumeration

The FTP service permitted anonymous login. Inside .hannah, I found an id_rsa private key and downloaded it to the attacker machine.

FTP enumeration

The key suggested the username hannah. A Telnet connection to port 61000 revealed an SSH banner, providing a way to test it.

SSH banner grab

Initial access

I authenticated as hannah over SSH with the recovered key. The first flag was in hannah’s home directory.

First flag

Privilege escalation

I ran LinPEAS and investigated the root-owned cpulimit binary under /usr/bin/.

Privilege escalation binary

I reviewed the binary’s usage and its permissions. The original sequence includes chmod +s; the screenshot is needed to establish exactly how that permission change was allowed.

Setting UID/GID bits

I then ran /bin/bash -p, which returned a root shell.

Outcome

Anonymous FTP exposed a private SSH key, and the later local permissions path led to root access. The precise role of cpulimit and chmod +s warrants verification against the recorded command output.