Skip to content

Commit

Permalink
Merge pull request GhostPack#168 from koztkozt/koztkozt-patch-2
Browse files Browse the repository at this point in the history
Fix substring issue in S4U.cs
  • Loading branch information
0xe7 authored Sep 11, 2023
2 parents 0dc51e1 + f4c2b6e commit 3596d62
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 3596d62

Please sign in to comment.