开发者

How PSExec runs application as SYSTEM user?

开发者 https://www.devze.com 2023-04-02 23:55 出处:网络
I 开发者_高级运维wondered how psexec.exe by sysinternals executes a process as a SYSTEM user. I need to run a tool under a SYSTEM process, but I don\'t really know how to do that without registering i

I 开发者_高级运维wondered how psexec.exe by sysinternals executes a process as a SYSTEM user. I need to run a tool under a SYSTEM process, but I don't really know how to do that without registering it as a service.

Does anyone have an idea ?

p.s. I would really prefer to do it with WINAPI (C++). Thanks! :-)

Thanks!


psexec operates by creating a phantom, behind-the-scenes Windows service named "psexesvc" that is then removed after the operation completes.

Details are here: http://www.windowsecurity.com/articles/PsExec-Nasty-Things-It-Can-Do.html

Perhaps your tool could call psexec to run a process?

0

精彩评论

暂无评论...
验证码 换一张
取 消