Skip to content

Commit 8a2ffd4

Browse files
authored
BED-6876 - add SharpHound and SharpHoundCommon version to log (#188)
* chore: add SharpHound and SharpHoundCommon version to log * chore: remove ToString, move to try block
1 parent 094ead7 commit 8a2ffd4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Sharphound.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
using System;
1818
using System.DirectoryServices.Protocols;
19+
using System.Reflection;
1920
using System.Threading;
2021
using System.Threading.Tasks;
2122
using CommandLine;
@@ -40,6 +41,8 @@ public static async Task Main(string[] args) {
4041
logger.LogInformation("This version of SharpHound is compatible with the 5.0.0 Release of BloodHound");
4142

4243
try {
44+
logger.LogInformation("SharpHound Version: {Version}", Assembly.GetExecutingAssembly().GetName().Version);
45+
logger.LogInformation("SharpHound Common Version: {Version}", Assembly.GetAssembly(typeof(CommonLib)).GetName().Version);
4346
// Checks the release version available on the machine.
4447
var releaseVersion = (int) Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full", "Release", 0);
4548
if (releaseVersion == 0) releaseVersion = (int) Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full", "Release", 0);

0 commit comments

Comments
 (0)