Re: argc issue

3APA3A <[email protected]>
Newsgroups gmane.comp.security.vulnerabilities
Organization http://www.security.nnov.ru
Message-ID <[email protected]>
Dear [email protected],

--Tuesday, May 23, 2006, 9:51:58 PM, you wrote to [email protected]:

pcue> int main (int argc, char **argv)

pcue> But the main issue is " if (argc) exit(0);" . How can I change the argc
pcue> variable so it contais the value of 0?.

you can set argc of 0 with

execl(app, NULL);

but   your   chances   to   control   argv[1]  are  very  low.  In  most
implementations  your  argv[1] will be last NULL record from envp array.
You can try to play with envp though.



-- 
~/ZARAZA
http://www.security.nnov.ru/
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.