PowerShellMafia / PowerSploit

PowerSploit - A PowerShell Post-Exploitation Framework
Other
11.68k stars 4.59k forks source link

Powerview Get-NetDomainTrust no longer lists TrustTypes in latest dev branch #343

Open gladiatx0r opened 4 years ago

gladiatx0r commented 4 years ago

Similar to issue #342 I'm showing discrepancies between the master branch and dev branch which I'm not sure are intentional.

In this case Get-NetDomainTrust returns the attribute TrustType. In the Master branch version of Powerview, that indicates External vs ParentChild trust types (for example). In the latest version of PowerView, that attribute only ever seems to print "WINDOWS_ACTIVE_DIRECTORY". So then the question is, in the dev branch, where is the attribute that indicates TrustType (external vs parentchild, etc)?

You can kind of determine an external trust by the 'FILTER_SIDS' 'TrustAttribute' but the old way of just plainly telling me the trust relationship in plain english was preferred/better.

In the following screenshots you can see the results of the master branch on the left, and the dev branch on the right

powerview get-netdomaintrust

Also FWIW the default table view was a nice touch (I know you can do it manually in the latest version)