RE: argc issue

"Chris Eagle" <[email protected]>
Newsgroups gmane.comp.security.vulnerabilities
Message-ID <00bb01c68019$3f27d2b0$6300a8c0@theodore>
[email protected] wrote:
>  if (argc)
>     exit (-1);
> But the main issue is " if (argc) exit(0);" . How can I 
> change the argc
> variable so it contais the value of 0?.
> 

Take control your args and environment using execve.  You'll need to
understand how argv and envp are setup in memory in order do what you want
to do.  Try an empty argument vector and see what happens when you play
around with envp[0] if I recall correctly.

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.