From 426b0d1883a4c83ba862ec7b3ffed7154a63d494 Mon Sep 17 00:00:00 2001 From: toni Date: Fri, 8 Mar 2013 18:21:01 +0100 Subject: some exploitable modules added --- overflow_function.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 overflow_function.c (limited to 'overflow_function.c') 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 +#include +#include + +void stupid(char *str) +{ + char buf[30]; + /* exploitable function */ + strcpy(buf, str); +} + +int main(int argc, char **argv) +{ + stupid(argv[1]); + return 0; +} -- cgit v1.2.3