IsraelTorres icon

demo-vuln.c

IsraelTorres | PRO | 06/16/11 12:04:37 AM UTC | 0 ⭐ | 526 👁️ | Never ⏰ | []
C |

550 B

|

None

|

0 👍

/

0 👎

/*
 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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎