File indexing completed on 2024-05-12 05:39:33

0001 #!/bin/sh
0002 
0003 rm -rf build
0004 mkdir build
0005 cd build
0006 CC=afl-gcc CXX=afl-g++ cmake ../ -DSTATIC_BUILD=ON && make
0007 #export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
0008 
0009 
0010 #./fuzzTestCase ../testcase_dir/gooddata.txt
0011 # afl-fuzz -m 2G -i ../testcase_dir -o ../findings_dir ./fuzzTestCase @@
0012 afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -M fuzzer01 ./fuzzTestCase @@ &
0013 screen -S fuzz1  -d -m touch afl-fuzz  -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer02 ./fuzzTestCase @@ &
0014 screen -S fuzz2 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer03 ./fuzzTestCase @@ &
0015 screen -S fuzz3 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer04 ./fuzzTestCase @@ &
0016 screen -S fuzz4 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer05 ./fuzzTestCase @@ &
0017 screen -S fuzz5 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer06 ./fuzzTestCase @@
0018 
0019 
0020 
0021 # as root
0022 
0023 # echo core >/proc/sys/kernel/core_pattern
0024 
0025 # echo performance | tee cpu*/cpufreq/scaling_governor
0026 
0027 # echo  ondemand | tee cpu*/cpufreq/scaling_governor