in reply to How best to hide command-line arguments from ps command?
Not necessarily. For example, under Linux with a /proc filesystem: I just have to browse to /proc/<pid>/environ and look at it--of course, I would still need the correct permissions to read the environ pseudo-file. In any case, I wouldn't consider this safe since the environment isn't really a secure store.
You can turn off echo on the tty in Perl just as easily as with stty:
use Term::Readkey; ReadMode "noecho"; $password = <STDIN>; ReadMode "restore";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: How best to hide command-line arguments from ps command?
by etcshadow (Priest) on Nov 18, 2003 at 22:20 UTC | |
by sgifford (Prior) on Nov 19, 2003 at 01:54 UTC | |
by etcshadow (Priest) on Nov 19, 2003 at 02:44 UTC | |
by sgifford (Prior) on Nov 19, 2003 at 03:30 UTC | |
by etcshadow (Priest) on Nov 19, 2003 at 05:22 UTC |