/*
demo-vuln.c
Israel Torres [email protected]
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
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;
}
Comments
0 B
|👍
/👎