Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extraction of password policies and some registry values from the GptTmpl file #52

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/CommonLib/OutputTypes/ResultingGPOChanges.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
using System;
using System.Collections.Generic;

namespace SharpHoundCommonLib.OutputTypes
{
public class ResultingGPOChanges
{
public GPOChanges Enforced;
public GPOChanges Unenforced;
public TypedPrincipal[] LocalAdmins { get; set; } = Array.Empty<TypedPrincipal>();
public TypedPrincipal[] RemoteDesktopUsers { get; set; } = Array.Empty<TypedPrincipal>();
public TypedPrincipal[] DcomUsers { get; set; } = Array.Empty<TypedPrincipal>();
public TypedPrincipal[] PSRemoteUsers { get; set; } = Array.Empty<TypedPrincipal>();
public bool BlockInheritance;
public TypedPrincipal[] AffectedComputers { get; set; } = Array.Empty<TypedPrincipal>();
}

public class GPOChanges
{
public Dictionary<string, int> PasswordPolicies = new();
public Dictionary<string, int> LockoutPolicies = new();
public Dictionary<string, bool> SMBSigning = new();
public Dictionary<string, bool> LDAPSigning = new();
public Dictionary<string, object> LMAuthenticationLevel = new();
public Dictionary<string, int> MSCache = new();
}
}
Loading
Loading