mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
431 B
Bash
14 lines
431 B
Bash
#/bin/sh
|
|
ls src/fuzz_* | while read ftarget
|
|
do
|
|
target=$(basename $ftarget)
|
|
echo "target $target"
|
|
#download public corpus
|
|
rm -f public.zip
|
|
wget --quiet "https://storage.googleapis.com/suricata-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/suricata_$target/public.zip"
|
|
rm -rf corpus_$target
|
|
unzip -q public.zip -d corpus_$target
|
|
#run target on corpus.
|
|
./src/$target corpus_$target
|
|
done
|