Skip to content

Commit

Permalink
Merge pull request #69 from Manschk3rl/patch-1
Browse files Browse the repository at this point in the history
Closes #67
  • Loading branch information
krisdb2009 authored Dec 6, 2022
2 parents 5da7f4c + 0bb5de6 commit 7aba6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SuperGrate/Classes/Misc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static Task<UserRow> GetUserFromHost(UserRow TemplateRow, string Host, Ma
UserRow row = new UserRow(TemplateRow);
string user = await GetUserByIdentity(SID, Host);
Logger.Verbose("Found: " + user);
if (bool.TryParse(Config.Settings["HideBuiltInAccounts"], out bool setting) && setting && (user.Contains("NT AUTHORITY") || user.Contains("NT SERVICE")))
if (bool.TryParse(Config.Settings["HideBuiltInAccounts"], out bool setting) && setting && (Regex.IsMatch(SID, @"^S-1-5-[0-9]+$")))
{
Logger.Verbose("Skipped: " + SID + ": " + user + ".");
return null;
Expand Down

0 comments on commit 7aba6b2

Please sign in to comment.