Example Vulnerable Remote Program
// nmrcd.c
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int stuff(char *tmp) {
char buf2[1024];
strcpy(buf2,tmp);
return(0);
}
int main(int argc,char **argv) {
char buf[4096];
gets[buf];
stuff(buf);
return(0);
}