From 45ec0c7e1bfd251e13f4d3ade89785e98df31ba9 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Mon, 27 May 2013 00:07:01 +0200 Subject: start --- c_seguridad/code/bof/exploitable.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 c_seguridad/code/bof/exploitable.c (limited to 'c_seguridad/code/bof/exploitable.c') diff --git a/c_seguridad/code/bof/exploitable.c b/c_seguridad/code/bof/exploitable.c new file mode 100644 index 0000000..5492a29 --- /dev/null +++ b/c_seguridad/code/bof/exploitable.c @@ -0,0 +1,14 @@ +#include +#include + +void vulnerable(char* str) { + printf("Entrando en vulnerable...\n"); + char arr[60]; + strcpy(arr, str); +} + +int main(int argc, char** argv) { + if (argc > 1) + vulnerable(*(argv+1)); + return 0; +} -- cgit v1.2.3