Professional Documents
Culture Documents
Epilogue
Given the program below:
#include <stdio.h>
#include <string.h>
foo(3,4,5);
if(pass)
{
/* Now Give root or admin rights to user*/
printf ("\n Root privileges given to the user \n");
}
return 0;
}
Assume the program is in a file called: test.c
It is compiled and linked using gcc test.c –a test
and is executed as ./test
Right to left:
int a, int b, int c, int argc, char * argv[].
Top to Bottom:
int tmp, int pass, char buffer