Security: Running a process as System

Sometime you may need to impersonate the system account (e.g. to look inside the HKEY_LOCAL_MACHINE\SAM and HKEY_LOCAL_MACHINE\SYSTEM subkeys or exploring "System Volume Information"); using psexec you can run a process as system.

C:\>psexec.exe /s /i cmd.exe

PsExec v1.56 - Execute processes remotelyCopyright (C) 2001-2004 Mark RussinovichSysinternals -
Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.


cmd.exe exited on MYCOMPUTER with error code 0.

The -i switch is what causes process to appear on the console desktop and it's typically useful when you want to run a GUI application on the local system where you can interact with it.
Share on Google Plus

About Vittorio Pavesi

    Blogger Comment
    Facebook Comment

0 commenti: