A C# implementation of a computer object takeover through Resource-Based Constrained Delegation (msDS-AllowedToActOnBehalfOfOtherIdentity) based on the research by @elad_shamir. Credits also to @harmj0y for his blog post and to @kevin_robertson as I relied on the code for his Powermad tool.
SharpAllowedToAct has been built against .NET 3.5 and is compatible with Visual Studio 2017. Simply open the solution file and build the project.
CommandLineParser has been used in order to parse the arguments. This package will need to be installed using the following command:
Install-Package CommandLineParser -Version 1.9.3.15
After compiling the project simply merge the .exe and the CommandLine.dll into one executable file:
ILMerge.exe /out:C:\SharpAllowedToAct.exe C:\Release\SharpAllowedToAct.exe C:\Release\CommandLine.dll