Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- 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 <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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement