Summery
raiseChild.py is an Impacket tool used to escalate privileges in Active Directory by taking advantage of resource-based constrained delegation (RBCD).
It allows an attacker to grant themselves delegation rights over a target machine, enabling them to impersonate privileged users.
This tool will automate escalating from child to parent domain. We need to specify the target domain controller and credentials for an administrative user in the child domain; the script will do the rest.
Command
raiseChild.py -target-exec 172.16.5.5 LOGISTICS.INLANEFREIGHT.LOCAL/htb-student_adm
If we walk through the output, we see that it starts by listing out the child and parent domain’s fully qualified domain names (FQDN). It then:
- Obtains the SID for the Enterprise Admins group of the parent domain
- Retrieves the hash for the KRBTGT account in the child domain
- Creates a Golden Ticket
- Logs into the parent domain
- Retrieves credentials for the Administrator account in the parent domain
Finally, if the target-exec switch is specified, it authenticates to the parent domain’s Domain Controller via Psexec.