← ALL WRITEUPSFIELD NOTES / TECHNICAL WRITEUP

Cap.md

IP: 10.129.185.21
OS: linux
Difficulty: Easy
Date: 10/26/2026
Source: HTB

Nmap

nmap -sV -sC -p- <IP>

Open ports:

Enumeration

Web

HTTP website on port 80.

Foothold

**Vulnerability:** IDOR vulnerability allowed me to change users by just changing numbers in the URL.

Exploit: After obtaining the Wireshark file, I followed the TCP stream and found FTP username and password.

Was able to access the FTP with these creds that I found.

Then found that I can use them to SSH into the machine.

Privilege Escalation

**Vector:** After further enumeration, I found that there's a file GUID owned by root that we can use to escalate our privilege.

**Technique:** Ran linpeas and found that we can exploit setuid.

So I used this Python code to set my UUID to 0, which is root:

python3 
import os
os.setuid(0)
os.system("/bin/bash")

Flags

← BACK TO WRITEUPSMAZEN. / HOME