Attacks and Exploits
A tester has a PowerShell session on a domain-joined workstation without RSAT or the ActiveDirectory module. To query AD for user accounts, no external script or module may be imported. Which choice BEST fits?
Show the answer
Correct answerD. The built-in ADSI searcher type accelerator
AWhy not this: PowerView must be imported as an external script, which the constraint forbids.
BWhy not this: Get-ADUser needs the ActiveDirectory module from RSAT, which is not installed on this host.
CWhy not this: PowerUpSQL finds SQL Server instances through SPNs; it is not a general AD user search.
DWhy this is right: The ADSI searcher is built into PowerShell through .NET, so it queries AD with no extra module or script.
The ADSI searcher type accelerator wraps the .NET DirectorySearcher class, so PowerShell can query AD with nothing imported. Get-ADUser depends on the ActiveDirectory module, which is absent here, and PowerView must be loaded as a script.