# Gift

<figure><img src="/files/xIUp0kXI9ikdF78c8nao" alt=""><figcaption></figcaption></figure>

## Fase de reconocimiento

Hacemos un escaneo de nmap que nos revela que los siguientes puertos están abiertos:

* 22 SSH
* 80 HTTP

<figure><img src="/files/DZxOA6iCqkUgOe5VNzZf" alt=""><figcaption></figcaption></figure>

En la página web encuentro lo siguiente:

<figure><img src="/files/ZN9B0JtzpBl60uPCK67X" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/U8yty6ZjqaoJ5HcFT4fm" alt=""><figcaption></figcaption></figure>

Voy a hacer fuzzing para encontrar algun directorio o archivo del que me pueda aprovechar:

<figure><img src="/files/VjMT5SUPE6p8PvLnK6f7" alt=""><figcaption></figcaption></figure>

Tras cambiar varias veces el diccionario me doy cuenta que quizás es de verdad tan simple como dice, así que voy a hacer directamente fuerza bruta al SSH, no se ningún posible usuario así que sin más reparos pruebo con el usuario root (Hacerlo con el rockyou me parecía muy lento, así que probé con un diccionario hecho con las palabras de la web y fue bastante veloz):

<figure><img src="/files/d18PjbfRLgr4KG25XGhC" alt=""><figcaption></figcaption></figure>

## Escalada de privilegios

Iniciamos sesion al puerto ssh con los credenciales obtenidos y encontramos las flags rapidamente

<figure><img src="/files/Hnf1bSLFWiM0yf0vQWjY" alt=""><figcaption></figcaption></figure>

## Conclusión

Ha sido una maquina rápida, sencillita, de la cual nos hemos aprovechado de una contraseña débil la cual obtuvimos mediante la creación de un diccionario basándonos en las palabras del servicio web, a continuación con hydra hicimos fuerza bruta y conseguimos dar con los credenciales validos consiguiendo root.


---

# 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://burple.gitbook.io/burple/hackmyvm/facil/gift.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.
