Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rubeus/lib/Harvest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void HarvestTicketGrantingTickets()
if (collectionStart.AddSeconds(this.runFor) < DateTime.Now)
{
Console.WriteLine("[*] Completed running for {0} seconds, exiting\r\n", runFor);
System.Environment.Exit(0);
return;
}
}

Expand Down
4 changes: 2 additions & 2 deletions Rubeus/lib/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static byte[] StringToByteArray(string hex)
if ((hex.Length % 16) != 0)
{
Console.WriteLine("\r\n[X] Hash must be 16, 32 or 64 characters in length\r\n");
System.Environment.Exit(1);
return null;
}

// yes I know this inefficient
Expand Down Expand Up @@ -564,4 +564,4 @@ static public List<IDictionary<string, Object>> GetADObjects(SearchResultCollect

#endregion
}
}
}