# Kenobi

![](/files/-Mcu4Y57TdtOW8L8O6jT)

## Deploy the vulnerable machine

Lets run nmap scans to find open ports and what services are running on them

![](/files/-Mcu5aSO9n9xbo_HQW3O)

![](/files/-Mcu5hap3I_WNVuJhelw)

![](/files/-Mcu60IaVTL5UYimDby8)

## Enumerating Samba for shares

![](/files/-Mcu6PE4MTyWoHHZKQKm)

![](/files/-Mcu6nz7syHQv0rOluie)

![](/files/-Mcu6rghe4Ptzt-DZjUl)

![](/files/-Mcu777346ENzpCgkmSN)

![](/files/-Mcu7AhTBJ4IuY5q3TrJ)

Lets read the file

![](/files/-Mcu7QWd0CeVRXhDXJaI)

![](/files/-Mcu7YKAxpqG7RbGhm7E)

![](/files/-Mcu7anRSA2Itcz-oB0-)

## Gain initials access with ProFtpd

![](/files/-Mcu7m2hfp3Gt0kfyEDM)

Lets connect to FTP using Netcat

![](/files/-Mcu7xOm0Gx-dtaEBPjK)

![](/files/-Mcu8-cXhdYFxVRlmWBn)

Lets go to searchsploit and look for exploits on this particular version of FTP

![](/files/-Mcu8Awkwh0V8gAy8gyU)

![](/files/-Mcu8EnK-U5uv-_1dHBP)

Lets follow the steps they gave in the room to get an initial foothold on the machine

![](/files/-Mcu8ePRGvNj1t5JJRck)

![](/files/-Mcu9_0iIPFAp726JweM)

We are logged in, lets read the user flag.

![](/files/-Mcu9lyV25_d87v6HCB1)

## Privilege Escalation with Path Variable Manipulation

![](/files/-Mcu9zvDiwb_q2WHXN2d)

Lets follow the steps

![](/files/-McuAIYy_mt34kvv-Wl6)

![](/files/-McuANOneUXxaMQs7TPp)

![](/files/-McuAfEihNzAejemutKq)

![](/files/-McuAiroWBimLBTcSCw4)

![](/files/-McuAmHBlSIGljsG1Opw)

![](/files/-McuBLLNXemKsiTSfjEQ)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://writeups.adityadindi.com/tryhackme/walkthroughs-easy/kenobi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
