Run the process and hide the command line options from the task manager

I am not sure if this question is more suitable for Stackoverflow or SuperUser or what StackExchange site is ...

I basically run a third-party application from C # with Process.Starta few command line options. One of the command line options is the password.

I think that I am really good at protecting this password everywhere in my application, unless you open the Processes tab in the Task Manager, you can add the Command Line column and view all command line parameters.

Can anyone think of a way to start a process that somehow hides command line options? Is this even possible?

Thank!

EDIT:

This is the Windows Service shell for plink.exe (material SSH / Putty). It will ask for a password if I do not enter a password on the command line, but I get this strange warning:

Plink.exe - 3/30/2013 2:40:47 PM - Attempting keyboard-interactive authentication
Plink.exe - 3/30/2013 2:40:47 PM - Server refused keyboard-interactive authentication
Plink.exe - 3/30/2013 2:40:49 PM - user@hostname.com password: 

I pointed out to redirect standard input, but maybe I will continue to search for it and see if I can get around it. Also, as David Heffernan recommended, I will look further at Paint. Thanks to everyone - I will post the update after I come up with the best solution!

+5
source share
2 answers

It is not possible to pass a command line argument to a process so that the process can see it, but everything else on the system cannot.

, , , . , , .

+3

ACL , , . ACL, , , , . ( , - , ACL. , .)

, plink.exe , - . , , , !

+1

All Articles