> For the complete documentation index, see [llms.txt](https://4lec4st.gitbook.io/4lec4st/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://4lec4st.gitbook.io/4lec4st/writes-ups/tryhackme/medium/net-sec-challenge.md).

# Net Sec Challenge

## Introducción a la máquina

<figure><img src="/files/8BVgtmi7KFppwVO4SA03" alt=""><figcaption></figcaption></figure>

Net Sec Challenge es una máquina de nivel medio, en el que tendremos que enumerar y escanear los distintos puertos que hay en la máquina y encontrar las flags que nos piden.

***

## Respuesta de las preguntas

### What is the highest port number being open less than 10,000?

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

La respuesta es el puerto 8080.

### There is an open port outside the common 1000 ports; it is above 10,000. What is it?

Viendo la captura anterior podemos ver que es el puerto 10021.

### How many TCP ports are open?

Hay 6 puerto abiertos.

### What is the flag hidden in the HTTP server header?

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

La flag es la que vemos en la captura: THM{web\_server\_25352}

### What is the flag hidden in the SSH server header?

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

La flag es la que vemos en la captura: THM{946219583339}

### We have an FTP server listening on a nonstandard port. What is the version of the FTP server?

<figure><img src="/files/2JlDBI66NIEzxPreZ5DZ" alt=""><figcaption></figcaption></figure>

La versión es vsftpd 3.0.5

### We learned two usernames using social engineering: `eddie` and `quinn`. What is the flag hidden in one of these two account files and accessible via FTP?

Creamos un archivo con los dos nombres de usuarios.

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

Aplicamos fuerza bruta con hydra sobre estos dos usuarios en FTP.

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

Encontramos sus contraseñas. Ahora probaremos a conectarnos con los distintos usuarios:

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

La flag es la siguiente: THM{321452667098}

### Browsing to `http://10.10.109.150:8080` displays a small challenge that will give you a flag once you solve it. What is the flag?

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

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

Esta es la flag: THM{f7443f99}
