Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Vulnerability Development: RE: argc issue

RE: argc issue

From: Chris Eagle <cseagle_at_redshift.com>
Date: Thu, 25 May 2006 09:35:34 -0700

padre_at_correo.ugr.es 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
Received on May 26 2006

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos