# Subdominios

## Check List

1. Inspeccionar los certificados
2. Datos de los DNS de los subdominios que encontramos
3. Comprobar que con http y https sale lo mismo

## Enumeración pasiva

### Phonebook

{% embed url="<https://phonebook.cz/>" %}

### Intelx

{% embed url="<https://intelx.io/>" %}

### CRFR

```
python3 ctfr.py -d example.com
```

{% embed url="<https://github.com/UnaPibaGeek/ctfr>" %}

### Sublist3r

```
python3 sublist3r.py -d example.com
```

{% embed url="<https://github.com/aboul3la/Sublist3r>" %}

### DnsDumpster

{% embed url="<https://dnsdumpster.com/>" %}

### Hackertarget

{% embed url="<https://hackertarget.com/>" %}

## Enumeración activa

### ffuf

```
ffuf -w /usr/share/wordlists/SecLists/Discovery/DNS/bitquark-subdomains-top100000.txt -H "Host: FUZZ.example.com" -u http://<IP> -fs {size}
```

| Parámetro | Descripción                                                       |
| --------- | ----------------------------------------------------------------- |
| -w        | Wordlist                                                          |
| -H        | Cabecera del mensaje                                              |
| -u        | IP del dominio principal                                          |
| -fs       | Ignorar cualquier resultado que tenga X tamaño \[Ej: -fs 200,342] |

### Wfuzz

```
wfuzz -c --hc=403 -t 20 -w /usr/share/wordlists/SecLists/Discovery/DNS/subdomains-top1million-5000.txt -H "Host: FUZZ.example.com" -u https://example.com
```

### Gobuster

```
gobuster vhost -u https://example.com -w /usr/share/wordlists/SecLists/Discovery/DNS/subdomains-top1million-5000.txt
```

#### Con filtros

```
gobuster vhost -u https://example.com -w /usr/share/wordlists/SecLists/Discovery/DNS/subdomains-top1million-5000.txt -t 20 | grep -v "403"
```

### DNSRecon

&#x20;**DNSRecon** es una herramienta de línea de comando de Linux utilizada para la enumeración y el escaneo de servidores de nombres de dominio (DNS)

```
dnsrecon -brt -d <dominio dns>
```

| Parámetro | Descripción                                                                                                                                                      |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| -b        | Realiza una búsqueda inversa del servidor de nombres de dominio. Esta opción utiliza la dirección IP del servidor para buscar dominios alojados en ese servidor. |
| -r        | Realiza una búsqueda de registros DNS de forma recursiva en el servidor de nombres de dominio.                                                                   |
| -t        | Especifica el tipo de registro DNS que se va a buscar. Si no se especifica, se buscarán todos los tipos de registro.                                             |
| -d        | Dominio DNS                                                                                                                                                      |


---

# 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://j4ckie0x17.gitbook.io/notes-pentesting/reconocimiento/subdominios.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.
