Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.7 KB

active-directory-enumeration-with-ad-module-without-rsat-or-admin-privileges.md

File metadata and controls

33 lines (19 loc) · 1.7 KB

Active Directory Enumeration with AD Module without RSAT or Admin Privileges

This lab shows how it is possible to use Powershell to enumerate Active Directory with Powershell's Active Directory module on a domain joined machine that does not have Remote Server Administration Toolkit (RSAT) installed on it. Installing RSAT requires admin privileges and is actually what makes the AD Powershell module available and this lab shows how to bypass this obstacle.

Execution

The secret to being able to run AD enumeration commands from the AD Powershell module on a system without RSAT installed, is the DLL located in C:\Windows\Microsoft.NET\assembly\GAC_64\Microsoft.ActiveDirectory.Management on a system that has the RSAT installed:

This means that we can just grab the DLL from the system with RSAT and drop it on the system we want to enumerate from (that does not have RSAT installed) and simply import that DLL as a module:

Import-Module .\Microsoft.ActiveDirectory.Management.dll

Note how before we import the module, Get-Command get-adcom* returns nothing, but that changes once we import the module:

As mentioned earlier, this does not require the user have admin privileges:

Download Management.DLL

{% file src="../../.gitbook/assets/Microsoft.ActiveDirectory.Management (1).dll" %} Microsoft.ActiveDirectory.Management.dll {% endfile %}

Reference

{% embed url="https://scriptdotsh.com/index.php/2019/01/01/active-directory-penetration-dojo-ad-environment-enumeration-1/" %}