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

Gaara

Platform: Proving Grounds

2024-02-07_20-27.png

An ICMP echo response confirmed that the target was reachable.

Reconnaissance

I used RustScan to identify open ports.

2024-02-07_20-34.png

The scan found ports 22 and 80 open.

Service enumeration

I followed up with Nmap for service and version detection.

2024-02-07_20-32.png

The banners identified SSH and HTTP and indicated a Debian-based Linux host.

Web enumeration

I opened the HTTP service on port 80:

2024-02-07_20-39.png

The page contained an image and an email address. Its source did not expose a useful lead.

I checked for additional web paths.

2024-02-07_20-53.png

The scan found only the existing image file.

Initial access

I used the name gaara as a candidate SSH username and tested passwords from the rockyou wordlist.

2024-02-07_20-52.png

The test returned a valid password.

I logged in as gaara and found the user flag in the home directory:

2024-02-07_21-14.png

Privilege escalation

LinPEAS identified /usr/bin/gdb as a possible escalation vector.

2024-02-07_21-42.png

I checked GTFOBins for a method using gdb with its SUID bit set.

2024-02-07_21-45.png

The technique required the full path to the executable.

2024-02-07_21-47.png

The resulting shell reported effective UID 0. I retrieved the root flag:

2024-02-07_21-49.png

Outcome

A weak SSH password provided user access, and the SUID-enabled gdb binary provided root-level execution.