/* demo-vuln.c Israel Torres hakin9@israeltorres.org Mon May 30 15:54:33 PDT 2011 "from-fuzz-to-sploit" demo to: 1. create a BO vulnerable app (using scanf) compile with: gcc -m32 demo-vuln.c -o demo-vuln-32 gcc -m64 demo-vuln.c -o demo-vuln-64 */ #include #include #include void hidden_function(void) { printf("This is the \"hidden\" function.\n"); } int main(int argc, char *argv[]){ char string[2]; puts("Password: "); scanf("%s", string); printf("You entered %s.\n", string); return 0; }