menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right 002-3.4.2枚举 chevron_right 008-3.4.2.8 域信任枚举.md
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    008-3.4.2.8 域信任枚举.md
    719 B / 2021-07-17 00:01:42
        # 3.4.2.8 域信任枚举
    
    Forest间的域课通过建立信任关系进行跨域访问(存在单向信任、双向信任、父子信任、树根信任以及外部信任)
    
    ```bash
    Get-NetDomainTrust
    Get-NetDomainTrust -Domain CASC-DC1.cascade.local
    
    ```
    
    .
    
    ```bash
    Get-ADTrust 
    Get-ADTrust   -Identity CASC-DC1.cascade.local
    
    ```
    
    **林:**
    
    获取林详情:
    
    ```bash
    Get-NetForest
    Get-NetForest -Forest   htb.local
    
    ```
    
    .
    
    ```bash
    Get-ADForest
    Get-ADForest -Identity htb.local
    
    ```
    
    获取林内的域:
    
    ```bash
    Get-NetForestDomain
    Get-NetForestDomain -Foresr htb.local
    
    ```
    
    .
    
    ```
    (Get-ADForest).Domains
    
    ```
    
    当前林目录:
    
    ```
    Get-NetForestCatalog
    
    ```
    
    林间信任:
    
    ```
    Get-NetForestTrust
    
    ```
    
    
    
    links
    file_download