4 - LO 4️
Learning Object 4
Tasks
1 - Enumerate all domains in the moneycorp.local forest
2 - Map the trusts of the dollarcorp.moneycorp.local domain
3 - Map External trusts in moneycorp.local forest
4 - Identify external trusts of dollarcorp domain. Can you enumerate trusts for a trusting forest?
Flag 4 [Student VM] - Trust Direction for the trust between dollarcorp.moneycorp.local and eurocorp.local 🚩
Solutions
1 - Enumerate all domains in the moneycorp.local forest
Start InviShell and PowerView
C:\AD\Tools\InviShell\RunWithRegistryNonAdmin.bat
. C:\AD\Tools\Powerview.ps1Using Get-ForestDomain we obtain all domains relative to moneycorp.local forest
Get-DomainTrust -Domain dollarcorp.moneycorp.local | select TargetName,TrustAttributes,TrustDirection2 - Map the trusts of the dollarcorp.moneycorp.local domain
Using Get-DomainTrust command we're able to retrieve Trusts and relative direction for dollarcorp.moneycorp.local domain
3 - Map External trusts in moneycorp.local forest
Using Get-DomainTrust and the trust attribute "FILTER_SIDS" we can display all external trust relationship. Enabling FILTER_SIDS ensures that only the primary SID is considered during authorization, ignoring any SIDHistory.
As saw in the last tasks, the current forest is moneycorp.local, so it's not necessary to specify it.
4 - Identify external trusts of dollarcorp domain. Can you enumerate trusts for a trusting forest?
We just know these information regarding dollarcorp domain
and the relative external trust:
To answer at the question: "Can you enumerate trusts for a trusting forest?" Remembering that the external forest is: eurocorp.local, we can enurate all domains of the forest checking the domain trust:
There's an error message because we can't enumerate trusts of a domain for which we haven't visibility into.
In addition, if we try to check forest domain for eurocorp.local, we can't extract full informations
Flag 4 [Student VM] - Trust Direction for the trust between dollarcorp.moneycorp.local and eurocorp.local 🚩
The trust direction between dollarcorp.moneycorp.local and eurocorp.local can be determined by inspecting the TrustDirection field using:
Last updated