# Domain Gathering

Necesitamos saber Dominio, nº de máquinas y el nombre del Controlador de Dominio.

Tiramos de netexec para intentar sacar esta información.

```
sudo netexec smb <IP> -u "" -p ""
```

Sacamos el nombre de dominio y lo pondremos en el /etc/hosts para que resuelva bien y no tengamos problemas.

```
/etc/hosts

#Sintaxis

<IP> dominio.local dc dc.dominio.local
```

Si el **SMBv1:True** fuera así, puede ser vulnerable a:

-EternalBlue (MS17-010) -SMB Relay Attack -Denial of Services -Información del Sistema


---

# 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://alv-fh.gitbook.io/alv-fh/active-directory-methodology/domain-gathering.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.
