radare2/sys/afl.sh
pancake 6d309e2c5e Implement dko for Linux. Enhace the command and support SKIP and CONT options
- Can continue into the signal handler
- Can skip the instruction and ignore the signal handler
- By default it will just stop in there
2014-12-12 00:34:53 +01:00

16 lines
322 B
Bash
Executable File

#!/bin/sh
export CC="afl-clang"
if [ -d /usr/lib/afl ]; then
export AFL_PATH=/usr/lib/afl
fi
echo 'int main(){return 0;}' > .a.c
[ -z "${CC}" ] && CC=gcc
${CC} ${CFLAGS} ${LDFLAGS} -o .a.out .a.c
RET=$?
rm -f .a.out .a.c
if [ $RET != 0 ]; then
echo "Your compiler doesn't supports AFL"
exit 1
fi
exec sys/install.sh $@