PowerShellEmpire/PowerTools

PowerView:Invoke-MapDomainTrust Exception

ethack opened this issue · 0 comments

When I run the function Invoke-MapDomainTrust I get the following exception.

Exception calling "ContainsKey" with "1" argument(s): "Key cannot be null.
Parameter name: key"
At PowerTools-master\powerview\powerview.ps1:10924 char:42
+         if (-not $SeenDomains.ContainsKey <<<< ($Domain)) {
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

WARNING: The specified domain redacted.com does not exist, could not be
contacted, or there isn't an existing trust.

It continues running and looping through each item but it's throwing a lot of the above exceptions in my current environment. It appears to still be returning good results as it finds them as well.