From 46513208742b47366e3d0e4deed8f83867bd939f Mon Sep 17 00:00:00 2001 From: anemeth Date: Thu, 18 Jan 2024 15:47:41 -0800 Subject: [PATCH] Elevate DomainSid and IsDomainController properties to Computer model --- src/CommonLib/OutputTypes/Computer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CommonLib/OutputTypes/Computer.cs b/src/CommonLib/OutputTypes/Computer.cs index 351b72d3..4e51b270 100644 --- a/src/CommonLib/OutputTypes/Computer.cs +++ b/src/CommonLib/OutputTypes/Computer.cs @@ -8,6 +8,7 @@ namespace SharpHoundCommonLib.OutputTypes public class Computer : OutputBase { public string PrimaryGroupSID { get; set; } + public string DomainSid { get; set; } public TypedPrincipal[] AllowedToDelegate { get; set; } = Array.Empty(); public TypedPrincipal[] AllowedToAct { get; set; } = Array.Empty(); public TypedPrincipal[] HasSIDHistory { get; set; } = Array.Empty(); @@ -19,6 +20,7 @@ public class Computer : OutputBase public UserRightsAssignmentAPIResult[] UserRights { get; set; } = Array.Empty(); public DCRegistryData DCRegistryData { get; set; } = new(); public ComputerStatus Status { get; set; } + public bool IsDomainController { get; set; } } public class DCRegistryData