diff options
author | toni <matzeton@googlemail.com> | 2014-01-15 17:26:00 +0100 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2014-01-15 17:26:00 +0100 |
commit | a0c08ee7c9de75e7674eee76df532c5da7adc03a (patch) | |
tree | 176dddb38d42f4a2fa3af57fe359eccfc7cc985b /overflow_function.c | |
parent | 426b0d1883a4c83ba862ec7b3ffed7154a63d494 (diff) |
simple strcpy() exploit works
Diffstat (limited to 'overflow_function.c')
-rw-r--r-- | overflow_function.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/overflow_function.c b/overflow_function.c deleted file mode 100644 index 6d6e950..0000000 --- a/overflow_function.c +++ /dev/null @@ -1,16 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -void stupid(char *str) -{ - char buf[30]; - /* exploitable function */ - strcpy(buf, str); -} - -int main(int argc, char **argv) -{ - stupid(argv[1]); - return 0; -} |