1.download and make
git clone git://github.com/google/AFL.git
cd AFL/
make
2.write a sample application
#include <stdio.h>
int main( )
{
int c;
printf( "Enter a value :");
c = getchar( );
printf( "\nYou entered: ");
putchar( c );
printf( "\n");
return 0;
}
3.compile this application with afl-gcc
./afl-gcc /home/wk/workspace/cdir/input.c
4.write a input file
5.start test
./afl-fuzz -i testcase_dir -o findings_dir -- ./a.out