main (int argn, char **argv, char **envv) { for ( ; *envv ; ++envv) { if (!strncmp(*envv,"PGP",3)) { char *c=*envv; while (*c) *c++=' '; } /* end of if */ } /* end of for */ system("printenv"); sleep(10); } And I should've enclosed it in #ifdef STUPID ... #endif. I misread
I wrote: the putenv(3) man page and didn't realize that you could just use
putenv("PGPPATH="); putenv("PGPPASS=");
To wipe those variables out of your environment... They still might get caught by a 'ps -eaxuww' but chances are slim. Is it posible to alter your arguments so they're not visible to 'ps -auxww'?
Well, I like this one. It lets you put little messages in place of argv[0].
#include