The following examples show some possibilities that demonstrate how it's possible to become SYSTEM.
Starting cmd.exe instead of osk.exe
The following change in the registry defines
cmd.exe
as debugger for
osk.exe
:
set-itemProperty "hklm:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osk.exe" -type string -name Debugger -value "C:\windows\system32\cmd.exe" -force
Now, we need to have Windows (i. e.
SYSTEM
) to start
osk.exe
. This can be achieved by having the
UAC prompt displayed, for example by starting
regedit.exe
.
When the UAC prompt is shown, the
Windows shortcut key Windows + O
allows to select
On-screen keyboard. This selection starts
osk.exe
, but since a debugger,
cmd.exe
is defined for this executable, the debugger, i. e.
cmd.exe
is started as
SYSTEM
:
C:\Windows\System32> whoami
nt authority\system