Launch process and hide command line parameters from Task Manager

后端 未结 2 1028
梦谈多话
梦谈多话 2021-01-12 23:25

I\'m not sure if this question is more appropriate for Stackoverflow or SuperUser or what StackExchange site...

Basically I\'m launching a third-party app from C# wi

2条回答
  •  生来不讨喜
    2021-01-13 00:10

    If you set an ACL for the new process, it should restrict who can read the command line information. An empty ACL, granting no permissions, might block access to administrators using Task Manager, though my first guess is that it will not. (Note that an empty security descriptor is not the same thing as an empty ACL. One implicitly grants permission to everyone, the other implicitly denies it.)

    Of course, an administrator could always replace plink.exe with something that stores the password somewhere. So I'm not sure that worrying about what the administrator can see with Task Manager makes sense!

提交回复
热议问题