Objective 2

任务

枚举以下内容在dollarcorp domain:

  1. 列出所有OU
  2. 列出StudentMachines OU所有计算机
  3. 列出GPO
  4. 枚举应用在StudentMachines OU的GPO

 

运行 invishell 脚本以避免增强日志记录 否则导入PowerView.ps1会被av拦截

C:\AD\Tools\InviShell\RunWithRegistryNonAdmin.bat

 

加载Powerview.ps1

. C:\AD\Tools\PowerView.ps1

 

列出所有OU

Get-DomainOU

屏幕截图 2024-09-04 203151

 

枚举应用在StudentMachines OU的GPO

(Get-DomainOU -Identity StudentMachines).gplink
Get-DomainGPO -Identity '{7478F170-6A0C-490C-B355-9E4618BC785D}'

屏幕截图 2024-09-04 203541

 

或直接使用下列命令

Get-DomainGPO -Identity (Get-DomainOU -Identity StudentMachines).gplink.substring(11,(Get-DomainOU -Identity StudentMachines).gplink.length-72)

屏幕截图 2024-09-04 203847

 

© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片