1
0

fuzz-main.sh 567 B

12345678910111213
  1. #!/usr/bin/env bash
  2. cd "${0%/*}"
  3. . ./fuzz-settings.sh
  4. # Create tmpfs for storing temporary fuzzing data
  5. mkdir $FUZZING_TEMPDIR
  6. sudo mount -t tmpfs -o size=300M none $FUZZING_TEMPDIR
  7. rm -rf $FUZZING_TEMPDIR/bin
  8. mkdir $FUZZING_TEMPDIR/bin
  9. cp -d ../../bin/* $FUZZING_TEMPDIR/bin/
  10. #export AFL_PRELOAD=$AFL_DIR/libdislocator.so
  11. LD_LIBRARY_PATH=$FUZZING_TEMPDIR/bin $AFL_DIR/afl-fuzz -p exploit -f $FUZZING_TEMPDIR/infile01 -x all_formats.dict -t $FUZZING_TIMEOUT $FUZZING_INPUT -o $FUZZING_FINDINGS_DIR -D -M fuzzer01 $FUZZING_TEMPDIR/bin/fuzz $FUZZING_TEMPDIR/infile01