Coder Social home page Coder Social logo

Comments (9)

andyrobbins avatar andyrobbins commented on May 19, 2024

Hi there,

Thanks for the issue submission. Here is the error message I'm seeing in your post:

The trust relationship between this workstation and the primary domain failed

This error would indicate to me that there is something wrong with the trust between the system you are running this on, and the domain the computer is part of. Are you able to authenticate to the domain? If currently logged on, I'd try browsing the SYSVOL or viewing basic domain info via net, (ie: net accounts /domain).

from bloodhound.

Itaykr avatar Itaykr commented on May 19, 2024

i tried your tests and everything works fine.. it seems that the exception raise on Export-BloundCSV cause running Get-BloundHoundData alone works without exceptions.

from bloodhound.

HarmJ0y avatar HarmJ0y commented on May 19, 2024

I think I know what the error might be, will dig into it in the next few days.

from bloodhound.

Itaykr avatar Itaykr commented on May 19, 2024

looking forward to hear from you..

from bloodhound.

HarmJ0y avatar HarmJ0y commented on May 19, 2024

The export functions attempt to do global catalog deconfliction for accounts that show up in more than one domain. The specific function where you're encountering the error is Get-NetForest -> are you able to run Get-NetForest manually?

Are you also able to run the following two lines (used to determine the SID of the forest root):

$ForestObject = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest(); $ForestSid = (New-Object System.Security.Principal.NTAccount($ForestObject.RootDomain,"krbtgt")).Translate([System.Security.Principal.SecurityIdentifier]).Value

from bloodhound.

Slad3G avatar Slad3G commented on May 19, 2024

Hey Guys,

I am having the same error and when I run the lines in your last thread I get:

PS C:\> $ForestObject = [System.DirectoryServices.ActiveDirectory.Forest]::GetCu
rrentForest(); $ForestSid = (New-Object System.Security.Principal.NTAccount($For
estObject.RootDomain,"krbtgt")).Translate([System.Security.Principal.SecurityIde
ntifier]).Value
Exception calling "Translate" with "1" argument(s): "Some or all identity refer
ences could not be translated."
At line:1 char:194
+ $ForestObject = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrent
Forest(); $ForestSid = (New-Object System.Security.Principal.NTAccount($ForestO
bject.RootDomain,"krbtgt")).Translate <<<< ([System.Security.Principal.Security
Identifier]).Value
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

from bloodhound.

HarmJ0y avatar HarmJ0y commented on May 19, 2024

Alrighty, not sure what's going on here, but I modified some of the logic with 2819e5f (pull the master branch). The global catalog user mapping is now abstracted out to Get-GlobalCatalogUserMapping which uses a different method to enumerate the reachable global catalog for the domain.

Pull the master branch, try Get-GlobalCatalogUserMapping and/or the normal Get-BloodHoundData | Export-BloodHoundCSV method again to see if the exception is solved.

from bloodhound.

Slad3G avatar Slad3G commented on May 19, 2024

That fixed it! Now I will hop over and submit an issue to the powerview module that is similar.

SG

from bloodhound.

HarmJ0y avatar HarmJ0y commented on May 19, 2024

Awesome, thanks!

from bloodhound.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.