Skip to main content

Linux AD

Tools required

<https://github.com/its-a-feature/KeytabParser>
<https://github.com/sosdave/KeyTabExtract>

I usually install them under /opt/linuxad

You will need to upload them on to the target host.

Extracting keytab data

Most likely you will need to be root to do this

python KeytabParser.py /etc/krb5.keytab
klist -k /etc/krb5.keytab
./keytabextract.py /etc/krb5.keytab

CCACHE ticket

ls /tmp/ | grep krb5cc # usual location

To reuse

  1. Get a copy of the file on your kali
  2. change the permission of the file to 600 using chmod 600 <name of the file>
  3. set env variable export KRB5CCNAME=/location/ticket_name