Skip to content
leg3ndProjects & tools
01Home02Projects03Tools04Notes
GMT+8
O/ OSCP exploitation reference
Workspace controls Memory only · 0 steps
Visualize path ↗
Command values 0 filled

Temporary connection values clear on reload. Passwords, hashes and tickets remain placeholders. Check address-family syntax in the selected command.

Reference index ↗ Search all procedures & variants ↗
01Discovery02Enumeration03Initial access04Usable access05Local privilege06Active Directory07Internal access08Evidence & reporting

QUICK REFERENCE

Discovery›Services›Web mapping›Web exploitation›Credentials›Public exploits›Sessions & transfers›Linux escalation›Windows escalation›AD enumeration›AD identity attacks›Lateral movement›Pivoting & tunnels›Execution troubleshooting›Integration & evidence›
174 methods · 15 topicsFull reference on GitHub ↗Commands · scripts · next steps
Tools/OSCP/Active Directory/AD identity attacks
← All ad identity attacks tasks

Conditional: trace GPO control to privileged policy consumption

CommandsIf → thenExplanation & examples

Needs: Effective rights on the necessary GPO components, applicable target scope/filtering, writable policy artifact and a privileged refresh trigger

Identify GPOs and links

# Identify GPOs and links
Get-DomainGPO
Get-DomainOU | Select-Object name,distinguishedname,gplink
Get-DomainObjectAcl -SearchBase 'CN=Policies,CN=System,DC=DOMAIN,DC=TLD' -ResolveGUIDs |
  Where-Object { $_.ActiveDirectoryRights -match 'GenericAll|GenericWrite|WriteDacl|WriteProperty' }

Inspect the installed build before a controlled lab action

SharpGPOAbuse supports immediate-task/local-group techniques, but syntax is version-sensitive and the action changes domain policy. Inspect the installed build before a controlled lab action:

REM Inspect the installed build before a controlled lab action
SharpGPOAbuse.exe --help
gpresult /r
gpupdate /force

Verify → Verify actual policy application and resulting privileged effect; retain/restorable original policy state.

If it fails → Wrong link, filtering, unavailable refresh or missing file rights invalidates the chain. Keep this as a conditional supplement. More detail ↓

If → then

  • An ACL/graph edge names GenericAll, GenericWrite, WriteDacl, WriteOwner or an extended/property right → Validate effective directory-object control

    Needs: Effective trustee membership, target object/type, inheritance/deny behavior and the exact permitted operation

  • A task/startup action consumes a writable command, file, directory or registry value → Control scheduled tasks, startup files or autostart consumers

    Needs: Effective object control, a higher principal and a usable scheduled/logon/manual trigger

  • Several hosts, identities, routes or competing hypotheses need coordination → Maintain state and select the next evidence-producing test

    Needs: Explicit scope/objective and a record of observations, unknowns and available capabilities

No useful finding → another task in this topic. Failed check → resolve the failure before ruling out the path.

Explanation & examples

Conditional: trace GPO control to privileged policy consumption

USE WHEN
A useful linked GPO has a potentially controllable directory or SYSVOL component
STARTING ACCESS
A domain identity, appropriate host privilege, or a validated effective directory-object right
RESULT
A verified policy-backed privileged action on an in-scope host

Recognize the clue

Enumerate GPO/OU links, then inspect the relevant directory object and SYSVOL policy component's effective control and target applicability.

Get-DomainGPO
Get-DomainOU | Select-Object name,gplink
SYNTHETIC EXAMPLE OUTPUT
OU: TARGET_OU
gPLink: POLICY_GUID
Potential GPO control: inspect directory and file components

Means: A linked policy supplies a potential privileged consumer only for hosts to which it actually applies.

Confirm: Check both needed policy components, effective ACEs, security/WMI filtering, target scope and refresh trigger.

After validation
The controlled policy is consumed on the intended host and effect verified: choose this conditional route.
Ruled out in this context
The target is excluded by policy filtering: reject that policy-to-host chain.
Still inconclusive
A writable GPO object without linked/applicable file-consumer evidence remains incomplete.

Troubleshooting: Wrong link, filtering, unavailable refresh or missing file rights invalidates the chain. Keep this as a conditional supplement.

Identify GPOs and links:

For a candidate, prove:

  1. the controlled principal can edit both the directory object and relevant SYSVOL policy files;
  2. the GPO is linked to the OU containing the intended test host/user;
  3. security filtering and WMI filters include that subject;
  4. the configured preference/task/script runs in the expected context; and
  5. policy refresh or another predictable trigger will occur.

SharpGPOAbuse supports immediate-task/local-group techniques, but syntax is version-sensitive and the action changes domain policy. Inspect the installed build before a controlled lab action:

Back up the GPO, restrict the target/scope, document the exact change and restore it after validation.

Why it works

GPO control spans directory objects, files, links and client-side processing. A writable GPO object alone does not prove that the intended host consumes the chosen setting.

Worked example · hypothetical

Observation: a group controls a GPO linked to an OU. Test: validate both policy components and actual target applicability. Illustrative output: security filtering excludes the target. Interpretation: the proposed policy-to-host chain is not enabled.

New identity, privilege, host or route? Re-enumerate → All topic tasks →

Study guide ↗Full procedure ↗Cheatsheet ↗
HomeProjectsToolsNotes
Interactive toolsOSCP notes ↗Extended OSCP workspace ↗Attack-path visualizer ↗

© 2026 Armaan. Built with curiosity.

GitHub ↗GMT+8