> For the complete documentation index, see [llms.txt](https://1gnotus.gitbook.io/ignotus_pwn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://1gnotus.gitbook.io/ignotus_pwn/vulnyx/writeup/maquina-ready-acces-anon-redis-debugfs-dev-sda1-crack-id_rsa.md).

# MAQUINA READY (Acces Anon Redis - Debugfs /dev/sda1 - crack id\_rsa)

Se realizo un escaneo de puertos para identificar los que se encuentran abiertos.

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

Durante el test se realizo una búsqueda de los servicios y versiones de cada puerto.

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

Se identifico un puerto interesante (puerto 6379 redis).

![](/files/WaIACtSUt3001DaQHTQt)&#x20;

Se observo que el puerto se encuentro accesible sin proporcionar ninguna credencial.

<https://book.hacktricks.wiki/en/network-services-pentesting/6379-pentesting-redis.html> (leer)

<figure><img src="/files/76nN6vF1OAUH6zXiTLzL" alt=""><figcaption></figcaption></figure>

Se usaron los siguientes comandos para subir una webshell y lograr la ejecución de comandos.

El siguiente recurso proporciona varios comandos

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

<figure><img src="/files/391AjHIGw5Z13QjJFagx" alt=""><figcaption></figcaption></figure>

Se logro acceder a la maquina victima con exito.&#x20;

```
Dato: La web shell se ejecuta en el puerto 8080, si prestan atencion en la primera fase de enumeracion se encuentra abierto el puerto 8080
```

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

Se utilizo el siguiente recurso para hacer uso de debugfs, ya que dentro de la maquina se identificó una particion /dev/sda1.

{% embed url="<https://www.tutorialspoint.com/unix_commands/debugfs.htm>" %}

Se observo que la id\_rsa se encuentra expuesta dentro del directorio /root/

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

Con el uso de john se logro obtener la clave de la id\_rsa.

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

Se dio permisos 600 a la id\_rsa y mediante el siguiente comando se logro acceso al sistema como usuario root.

```
chmod 600 id_rsa
ssh root@ip -i id_rsa
```

DATOS.

Se observo que dentro del sistema hay 2 usuarios, ben y peter

Al ejecutar sudo -l se identifico que mediante el binario "bash" es posible moverse lateralmente al usuario peter sin proporcionar passwords.

Tambien se encontro un archivo .zip dentro de la ruta /root


---

# 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://1gnotus.gitbook.io/ignotus_pwn/vulnyx/writeup/maquina-ready-acces-anon-redis-debugfs-dev-sda1-crack-id_rsa.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.
