Skip to content

Commit

Permalink
Kerberoast results limit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VbScrub committed Dec 2, 2021
1 parent 25bb9dc commit 5fd0e92
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GUI/Windows/AboutWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public AboutWindow()
private void Window_Loaded(object sender, RoutedEventArgs e)
{
LblVersion.Text = UiHelpers.GetAppVersionString();
LblBuildDate.Text = "30th November 2021"; // TODO: Update build date label before compiling
LblBuildDate.Text = "2nd December 2021"; // TODO: Update build date label before compiling
}

private void WebsiteLnk_Click(object sender, RoutedEventArgs e)
Expand Down
10 changes: 9 additions & 1 deletion GUI/Windows/Tabs/KerberoastTab.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,15 @@ private void BtnExecute_Click(object sender, RoutedEventArgs e)
settings.Delay = delay;
settings.Jitter = jitter;
}
if ((bool)ChkLimitResults.IsChecked) { settings.ResultsLimit = Convert.ToInt32(TxtResultsLimit.Text); }
try
{
if ((bool)ChkLimitResults.IsChecked) { settings.ResultsLimit = Convert.ToInt32(TxtResultsLimit.Text); }
}
catch (Exception ex)
{
MessageBox.Show("Please specify a valid number of results to limit to", "Invalid Results Limit", MessageBoxButton.OK, MessageBoxImage.Warning);
return;
}
if ((bool)RdoEnterprise.IsChecked) { settings.Enterprise = true; }
if ((bool)RdoAutoEnterprise.IsChecked) { settings.AutoEnterprise = true; }

Expand Down
5 changes: 5 additions & 0 deletions Rubeus/lib/Roast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@ public static List<KerberoastResult> Kerberoast(KerberoastSettings settings)

foreach (IDictionary<string, Object> user in users)
{
if (settings.ResultsLimit > 0 && results.Count == settings.ResultsLimit)
{
Console.WriteLine("[!] Hit results limit specified by user so not processing any more accounts");
break;
}
KerberoastResult roastResult = new KerberoastResult();
string samAccountName = (string)user["samaccountname"];
string distinguishedName = (string)user["distinguishedname"];
Expand Down
1 change: 1 addition & 0 deletions VersionHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Due to the change above, added an option to the Brute Forcer to skip the first AS-REQ without preauth if you want to speed things up but accept usernames being case sensitive
- Added support for requesting TGTs for usernames that contain UTF8 characters
- Improved error messages when kerberoasting or AS-REP roasting
- The option to limit the number of kerberoasting results actually works now

##### Version 0.3.0

Expand Down

0 comments on commit 5fd0e92

Please sign in to comment.