//Bow.c
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int bowfunc(char *string) {
char buffer[1024];
strcpy(buffer, string);
return 1;
}
int main(int argc, char *argv[]) {
bowfunc(argv[1]);
printf("Done.\n");
return 1;
}
//gcc bow.c -o bow32 -fno-stack-protector -z execstack -m32
//echo 0 > /proc/sys/kernel/randomize_va_space