Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Remove registry logged on, remove GPCO from high value targets
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Oct 29, 2020
1 parent 32e663c commit ee437a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions SharpHound3/Tasks/ConvertToWrapperTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ internal static LdapWrapper CreateLdapWrapper(SearchResultEntry searchResultEntr
DisplayName = $"{accountName}@{accountDomain}".ToUpper()
};

if (objectIdentifier.EndsWith("-512") || objectIdentifier.EndsWith("-516") || objectIdentifier.EndsWith("-519") ||
objectIdentifier.EndsWith("-520") || objectIdentifier.EndsWith("S-1-5-32-544") || objectIdentifier.EndsWith("S-1-5-32-550") ||
if (objectIdentifier.EndsWith("-512") || objectIdentifier.EndsWith("-516") || objectIdentifier.EndsWith("-519") || objectIdentifier.EndsWith("S-1-5-32-544") || objectIdentifier.EndsWith("S-1-5-32-550") ||
objectIdentifier.EndsWith("S-1-5-32-549") || objectIdentifier.EndsWith("S-1-5-32-551") || objectIdentifier.EndsWith("S-1-5-32-548"))
{
wrapper.Properties.Add("highvalue", true);
Expand Down
2 changes: 1 addition & 1 deletion SharpHound3/Tasks/LoggedOnTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal static async Task<LdapWrapper> ProcessLoggedOn(LdapWrapper wrapper)
{
var sessions = new List<Session>();
sessions.AddRange(await GetLoggedOnUsersAPI(computer));
sessions.AddRange(await GetLoggedOnUsersRegistry(computer));
//sessions.AddRange(await GetLoggedOnUsersRegistry(computer));
var temp = computer.Sessions.ToList();
temp.AddRange(sessions);
computer.Sessions = temp.Distinct().ToArray();
Expand Down

0 comments on commit ee437a5

Please sign in to comment.