> For the complete documentation index, see [llms.txt](https://oliver-3.gitbook.io/redteam-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oliver-3.gitbook.io/redteam-notes/dockerlabs/mirame.md).

# mirame

Iniciando con un escaneo de puertos, obtengo informacion de que el puerto 22 y el 80 estan abiertos\
Una vez dentro no hay mucho por hacer ni ver, asi que ejecute un sqlmap, trayendo como resultado la tabla de usuarios con sus contraseñas.

En primer instancia considere que algún par de datos seria el acceso al ssh de puerto 22 pero no funciono.&#x20;

Con fuzz de directorios tampoco conseguí nada relavante.\
Un dato raro que me llamo la atencion fue la existencia de un usuario "directorio" con esa contraseña.

Asique probe de insertar ambos en la url de la maquina y abrirlo en el buscador, obteniendo la siguiente imagen.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFLJd1oOCK7xiQmOAEfVk%2Fuploads%2FC2uQQZIiWjBKOUbS2afs%2Fimage.png?alt=media&#x26;token=5c7230ec-441e-4705-9e41-0d8f9959a1e3" alt=""><figcaption></figcaption></figure>

La descargue y aplique esteganografia para analizar la imagenComment.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFLJd1oOCK7xiQmOAEfVk%2Fuploads%2F9bbA2VheNJf9ivvdPl3c%2Fimage.png?alt=media&#x26;token=69409832-3a2d-4a68-a916-9a42874dca32" alt=""><figcaption></figcaption></figure>

Conseguimos un archivo .zip, al no contrar con la pass del archivo decidi probar con zip2john.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFLJd1oOCK7xiQmOAEfVk%2Fuploads%2FXkQH0mWdvJOhyslgxVzN%2Fimage.png?alt=media&#x26;token=9e29bd4b-639a-4b9c-8a22-7b52d4c6fb2c" alt=""><figcaption></figcaption></figure>

* Utilizo zip2john para extraer el hash y luego crackearlo usando la herramienta john the ripperComment.
* Una vez obtenida la contraseña del archivo zip, al descomprimir nos entrega un archivo txt una credencial, la cual esta vez, si es del ssh.

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFLJd1oOCK7xiQmOAEfVk%2Fuploads%2FThPYoZeR9HtWNzMw2Y72%2Fssh%20carlos.jpeg?alt=media\&token=840a26e9-f2bb-4107-8318-3d752e555813)

Ya dentro de la maquina, siendo el usuario "carlos", veo si hay algún binario que podamos aprovechar en el SUID.CommentBuscando en GTFOBins la herramienta "find" logro conseguir la escalacion de privilegios.

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFLJd1oOCK7xiQmOAEfVk%2Fuploads%2FobftVO2MExU1e4MGxsVN%2Fimage.png?alt=media\&token=b2c36a6a-b133-4a84-b2e9-c1154bec2af7)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://oliver-3.gitbook.io/redteam-notes/dockerlabs/mirame.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
