Source code for exploitable.c (via source-highlight)
#include <stdlib.h>
#include <stdio.h>
int exploited() {
printf("Got here!\n");
exit(0);
}
int main(void) {
char buffer[100];
while (fgets(buffer, sizeof buffer, stdin)) {
printf(buffer);
}
return 0;
}