Skip to content

Commit

Permalink
Update S4U.cs
Browse files Browse the repository at this point in the history
Fix substring issue with /opsec flag
  • Loading branch information
koztkozt authored Aug 15, 2023
1 parent 9241312 commit f4c2b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rubeus/lib/S4U.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private static void S4U2Proxy(KRB_CRED kirbi, string targetUser, string targetSP
string targetHostName;
if (parts.Length > 1)
{
targetHostName = parts[1].Substring(0, parts[1].IndexOf('.')).ToUpper();
targetHostName = parts[1].Split('.')[0].ToUpper();
}
else
{
Expand Down

0 comments on commit f4c2b6e

Please sign in to comment.