diff options
author | toni <matzeton@googlemail.com> | 2013-03-08 18:21:01 +0100 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2013-03-08 18:21:01 +0100 |
commit | 426b0d1883a4c83ba862ec7b3ffed7154a63d494 (patch) | |
tree | 127b691c8de1aa653c469e351b727560c6d65478 /overflow_function.c | |
parent | 664c8f1794db0c1f4ebafab955baaba04fc35ec2 (diff) |
some exploitable modules added
Diffstat (limited to 'overflow_function.c')
-rw-r--r-- | overflow_function.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/overflow_function.c b/overflow_function.c new file mode 100644 index 0000000..6d6e950 --- /dev/null +++ b/overflow_function.c @@ -0,0 +1,16 @@ +#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; +} |