From d64c47aef33cac073bae2e40fc9477f6a1217b70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 6 May 2020 19:41:29 +0200 Subject: [PATCH] :wrench: Afl crash helper --- scripts/afl-helper.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/afl-helper.sh diff --git a/scripts/afl-helper.sh b/scripts/afl-helper.sh new file mode 100644 index 00000000..5cd60101 --- /dev/null +++ b/scripts/afl-helper.sh @@ -0,0 +1,22 @@ +set -e +[ $# -lt 2 ] && { + echo "usage: afl-helper crash_dir out_dir" + exit 1 +} + +DEST=$(realpath $2) +cd $DEST +NUM=$(ls *.gw | wc -l) +TMP=0 +for a in *.gw +do + mv $a ${TMP}.gw + TMP=$((TMP+1)) +done + +cd $1 +for a in id* +do + cp $a $DEST/${NUM}.gw + NUM=$((NUM+1)) +done -- 2.43.0