Skip to content

Commit 0cb98e0

Browse files
committed
Code cleanup
1 parent 8edfc19 commit 0cb98e0

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

src/CommonLib/Processors/GPOLmCompatibilityLevelProcessor.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
using System;
2-
using System.Collections.Concurrent;
3-
using System.Collections.Generic;
42
using System.DirectoryServices.Protocols;
53
using System.IO;
64
using System.Linq;
75
using System.Text.RegularExpressions;
86
using System.Threading.Tasks;
9-
using System.Xml.XPath;
107
using Microsoft.Extensions.Logging;
11-
using SharpHoundCommonLib.Enums;
128
using SharpHoundCommonLib.LDAPQueries;
13-
using SharpHoundCommonLib.OutputTypes;
149

1510
namespace SharpHoundCommonLib.Processors
1611
{
@@ -51,17 +46,16 @@ public async Task<Boolean> ReadGPOLmCompatibilityLevel(string gpDn)
5146
return false;
5247
}
5348

54-
55-
//Add the actions for each file. The GPO template file actions will override the XML file actions
5649
return await ProcessGPOTemplateFile(filePath);
5750
}
5851

5952
/// <summary>
60-
/// Parses a GPO GptTmpl.inf file and pulls group membership changes out
53+
/// Parses a GPO GptTmpl.inf file and grep lmcompatibilitylevel value
6154
/// </summary>
6255
/// <param name="basePath"></param>
63-
/// <param name="gpoDomain"></param>
64-
/// <returns></returns>
56+
/// <returns>
57+
/// lmcompatibilitylevel < 3
58+
/// </returns>
6559
internal async Task<Boolean> ProcessGPOTemplateFile(string basePath)
6660
{
6761
var templatePath = Path.Combine(basePath, "MACHINE", "Microsoft", "Windows NT", "SecEdit", "GptTmpl.inf");

0 commit comments

Comments
 (0)