/* uber shitty yet effective fuzzer code */ #include #include #include #define NUM_FILES 8192 #define SIZE 6250577 int main(void) { FILE *in, *out, *lout; unsigned int n, i, j; char *buf = malloc(SIZE); char *backup = malloc(SIZE); char outfile[1024]; int rn, rn2, rn3, rn4; int rbyte; int numwrites; char tmp, tmp2, tmp3, tmp4; char cmd[4096]; char crap[1024]; int pid; char deathcmd[4096]; in = fopen("good.png", "r"); n = read(fileno(in), buf, SIZE); memcpy(backup, buf, n); lout=fopen("list", "w"); srand(time(NULL)); for (i=0;i