Skip to content

Commit

Permalink
Merge pull request #62 from 0xe7/kerberoast
Browse files Browse the repository at this point in the history
fixing kerberoasting when using TGT to authenticate but not supplying…
  • Loading branch information
HarmJ0y authored Sep 9, 2020
2 parents 8c87623 + f047b1d commit 0754532
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Rubeus/lib/Roast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.DirectoryServices;
using System.DirectoryServices.AccountManagement;
using System.Collections.Generic;
using Rubeus.lib.Interop;

namespace Rubeus
{
Expand Down Expand Up @@ -333,6 +334,12 @@ public static void Kerberoast(string spn = "", List<string> spns = null, string
}
}

if (TGT != null)
{
byte[] kirbiBytes = TGT.Encode().Encode();
LSA.ImportTicket(kirbiBytes, new LUID());
}

DirectoryEntry directoryObject = null;
DirectorySearcher userSearcher = null;

Expand Down

0 comments on commit 0754532

Please sign in to comment.