BloodHoundAD / SharpHound3

C# Data Collector for the BloodHound Project, Version 3
GNU General Public License v3.0
521 stars 156 forks source link

Add try/catch for the Main method #51

Closed matterpreter closed 2 years ago

matterpreter commented 2 years ago

This is mainly to support using SharpHound over C2. In some situations, SharpHound may throw some exception which the agent does not handle properly, leading to a generic error to be emitted (e.g., [-] Invoke_3 on EntryPoint Failed). The addition of this try/catch wrapper will cause a more specific error message to be returned to the user in the event that the collector fails, allowing them to debug the issue.

matterpreter commented 2 years ago

Closing because I don't know how to use READMEs. I'll reopen on the actual repo 🙃