# Pre2k Computer Account Abuse

Identifies **pre-created computer accounts** in Active Directory and attempts to obtain **Kerberos TGTs** using their default machine password.

Targets computer objects with:

* `objectClass=computer`
* `userAccountControl=4128` (WORKSTATION\_TRUST\_ACCOUNT + PASSWD\_NOTREQD)

The module:

1. Enumerates possibly vulnerable computer accounts via LDAP
2. Saves discovered accounts to file
3. Attempts TGT request using password = first 14 chars of hostname (lowercase)
4. Saves valid tickets as `.ccache`

***

#### Usage

```bash
nxc ldap <hostname> -u <user> -p <pass> -M pre2k
```

#### Output:

Discovered accounts:

```bash
~/.nxc/modules/pre2k/<domain>/precreated_computers.txt
```

Kerberos tickets:

```bash
~/.nxc/modules/pre2k/ccache/<machine>.ccache
```

### Using the forged ticket

```bash
export KRB5CCNAME=<machine>.ccache
nxc ldap <dc> --use-kcache
```

#### References:

{% embed url="<https://trustedsec.com/blog/diving-into-pre-created-computer-accounts>" %}


---

# 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://www.netexec.wiki/ldap-protocol/pre2k.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.
