# DriftingBlues6

### 🔍 **RECONOCIMIENTO**

En primer lugar, tras conectarnos a la máquina, utilizamos el comando:

```bash
ping -c 1 192.168.138.219
```

para verificar la conectividad de red.

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

A continuación, se realiza el comando:

```bash
nmap 192.168.138.219
```

para realizar un escaneo de puertos y servicios detallado en la dirección IP.

<figure><img src="/files/7Di5gxgZ6ITitn6YheHf" alt=""><figcaption></figcaption></figure>

Como podemos observar durante el escaneo que el **puerto 22** perteneciente al **servicio SSH,** el **puerto 631** perteneciente al **servicio IPP** y el **puerto 80** perteneciente al **servicio HTTP** están abiertos por lo que a continuación se indagará más.

### 🔎 **EXPLORACIÓN**

Se utiliza el comando:

```bash
sudo nmap -sCV -p80 -v 192.168.138.219
```

para obtener más información sobre ese puerto específicamente.

<figure><img src="/files/1zAVVv72TpUoC61X3cxI" alt=""><figcaption></figcaption></figure>

Revisamos el puerto 80.

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

Revisando el código fuente nos encontramos una recomendación.

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

Haciendo un escaneo de directorios.

```bash
gobuster dir -u 192.168.138.219 --wordlist /usr/share/wordlists/dirb/common.txt
```

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

Viendo el contenido del archivo **robots.txt** vemos que nos dice algo interesante de que hagamos un escaneo con la extensión **.zip**.

```
gobuster dir -u http://192.168.138.219 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x .zip
```


---

# 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://beafn28.gitbook.io/beafn28/writeups/proving-ground-play/driftingblues6.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.
