# pre2k
[pre2k](https://github.com/garrettfoster13/pre2k) checks for the existence of pre-Windows 2000 objects.

## Install
```
git clone https://github.com/garrettfoster13/pre2k.git
cd pre2k/
pip3 install .
```

## Run against the domain with authentication
Do the pre2k check and save any valid creds to a `.ccache` file:

```
pre2k auth -u low-priv -p 'pass' -d dom.com -dc-ip 1.2.3.4 -save -verbose
```
Note: sometimes I've seen the pre2k installed binary get dropped in `/home/YOUR-USERNAME/.local/bin/pre2k`

!!!info
Be sure to also check for machines with a blank password by adding the `-n` option to your `pre2k` search.
!!!

## Run with kerberos
```
gettgt.py domain.com/low-priv
export KRB5CCNAME=low-priv.ccache
pre2k auth -k -no-pass -d dom.com -dc-ip 1.2.3.4 -save -verbose
```

## Run with stronger authentication
I ran into a situation where I ran this tool and got:

```
Error: automatic bind not successful - strongerAuthRequired
```

Once I added the `-ldaps` flag to my `auth` command I was good to go!
