On Thu, Mar 20, 2008 at 07:25:19PM +0200, Shachar Shemesh wrote:
> And now to a slightly related subject - does anyone know how I can 
> change the command line that appears in "ps" for a program after it has 
> been run? I know it should be possible, because I vaguely remember 
> programs that receive sensitive information in command line and try to 
> immediately hide it, but merely writing to the argv addresses did not 
> bring the desired results, 

Are you sure? This works for me:
 strncpy(argv[0], "test123 456", strlen(argv[0]));
But this doesn't:
 argv[0] = "test123 456";
Make sure you get it right.
-- 
Didi


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to