need to fix fuzzer

This commit is contained in:
2024-04-28 22:18:53 +02:00
parent ecfecf5a03
commit add3a1feaa
480 changed files with 7 additions and 7816 deletions

View File

@@ -1,8 +1,9 @@
#!/bin/bash
app_name="amlogic"
target_soc="S922"
inputs_dir="/fuzz/input/"
outputs_dir="/fuzz/fuzz_output/"
outputs_dir="/fuzz/fuzz_output/${target_soc}"
# generate screenrc
tmp_screen_rc="/tmp/screenrc.${app_name}"
@@ -17,7 +18,7 @@ for id in {1..6}; do
if [ $id = 1 ]; then
master="M"
fi
cmd="sh -c 'afl-fuzz -U -t 5000 -o ${outputs_dir} -i ${inputs_dir} -${master} ${id_name} -- python3 fuzzer.py @@ ; bash'"
cmd="sh -c 'afl-fuzz -U -t 5000 -o ${outputs_dir} -i ${inputs_dir} -${master} ${id_name} -- python3 fuzzer.py -d ${target_soc} @@ ; bash'"
echo "screen -t $master$id_name $id $cmd" >> $tmp_screen_rc
done
screen -c $tmp_screen_rc