> For the complete documentation index, see [llms.txt](https://burple.gitbook.io/burple/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://burple.gitbook.io/burple/thehackerslabs/facil/microchoft.md).

# Microchoft

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

## Fase de reconocimiento

Primero iniciamos un escaneo de nmap y nos revela que la maquina victima es un Windows 7 Home Basic:

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

```
nmap -sSVC -Pn -open -vvv -min-rate 5000 IP
```

Ahora con nmap otra vez vamos a escanear la misma IP pero en concreto el puerto 445 (smb) en busqueda de la vulnerabilidad llamada eternalblue, esta fue empleada para infectar millones de equipos con el ransomware wannacry.

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

```
nmap -p445 --script smb-vuln-ms17-010 IP
```

## Intrusión y escalada de privilegios

Ahora iniciciamos metasploit "msfconsole" y buscamos la dicha vulnerabilidad encontrada "search ms17" y para usar el modulo deseado lo seleccionamos con los numeros:

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

Para ver la configuración de los modulos tienes que introducir "options", vemos que el parametro RHOSTS esta sin definir

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

Así que definimos con set

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

Para iniciar el exploit introducimos "exploit"

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

Nos vamos a la ruta de Users y con un dir nos muestra los usuarios, tambien eran visibles en la maquina

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

Las flags se encuentran en el Desktop de cada usuario

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


---

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