Name: Anonymous 2010-08-31 18:13
Your task:
Write a program that exploits the buffer overflow in the following program, to let it display the string ``Hello World'' on Linux i386:
Deadline is this sunday night 23:59:59
Write a program that exploits the buffer overflow in the following program, to let it display the string ``Hello World'' on Linux i386:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *readstuff(int length) {
char *buffa;
if((buffa = malloc(length)) == NULL)
return;
gets(buffa);
return buffa;
}
int main(int argc, char **argv) {
char *buffa;
buffa = readstuff(argc);
free(buffa);
return EXIT_SUCCESS;
}Deadline is this sunday night 23:59:59