Scan time is too long
The command I used was "execute-assembly sharpHound.exe -c all -d target.cn --OutputDirectory C:\Users\Public\Music ". There are about 100,000 users in the domain, and the scan got stuck after a few hours,Waiting time exceeds 10 hours, and it keeps getting stuck,I tried scanning with servers in other domains, but the result was the same.
I also used "-c sessions" and it got stuck. Using "-c acl" was very fast and the scan was completed in 10 minutes.
I can replicate the above with SharpHound 2.5.13, but with a different set of arguments. --collectionMethods DCOnly indeed gets stuck indefinitely, but --collectionMethods GPOLocalGroup,Trusts,Container,ACL,ObjectProps (DCOnly, but without groups) completes just fine. I can upload debug logs of both runs if needed, just need to sanitize them.
Could be related to this https://github.com/SpecterOps/BloodHound/issues/1528