Create a Scheduled Task running as SYSTEM and execute a command, for example a BIND Shell and connect to it.
Get a SYSTEM shell using CreateProcess PROC_THREAD_ATTRIBUTE_PARENT_PROCESS attribute
Invoke-Token.ps1
- Slightly modified Invoke-TokenManipulation from Powersploit
Get-WinlogonTokenSystem.ps1
- Token Manipulation for WinLogon Process to get a SYSTEM Shell.
Get a SYSTEM Shell over Named Pipe Impersonation
Get a SYSTEM Shell using psexec:
PsExec.exe -accepteula -s -i cmd.exe
I used Invoke-ReflectivePEInjection.ps1 to execute PsExec in memory with theese parameters. (Currently buggy, have to take a look)
Drop WindowsCoreDeviceInfo.dll bind Shell in System32 Folder and load it afterwards using UsoClient.exe
I will add other scripts with other techniques in the future.