Revision: 38538
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 4, 2011 23:40 by blackthorne
Initial Code
#include <unistd.h> int main(int argc,char **argv){ execve("/bin/ls", &argv[0], NULL); return 0; }
Initial URL
Initial Description
To execute external programs you should avoid functions like system() or popen() since they can be affected by the shell environment variables which issues serious security concerns. Instead, use execve().
Initial Title
Execve() for executing external programs
Initial Tags
Initial Language
C