PowerShellEmpire / PowerTools

PowerTools is a collection of PowerShell projects with a focus on offensive operations.
Other
2.03k stars 817 forks source link

PowerView:Invoke-MapDomainTrust Exception #74

Open ethack opened 8 years ago

ethack commented 8 years ago

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.