mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-13 22:42:38 +00:00
34 lines
615 B
Bash
Executable file
34 lines
615 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
#
|
|
# AFL
|
|
#
|
|
|
|
curl http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz | tar xvz
|
|
mv afl-* afl
|
|
cd afl
|
|
make -j $(nproc)
|
|
cd qemu_mode
|
|
./build_qemu_support.sh
|
|
cd ../../
|
|
|
|
mkdir -p bin
|
|
cd bin
|
|
ln -sf ../afl/{afl-as,afl-cmin,afl-gcc,afl-gotcpu,afl-plot,afl-qemu-trace,afl-showmap,afl-tmin,afl-whatsup} .
|
|
cd ..
|
|
|
|
cat <<END > bin/afl-fuzz
|
|
#!/bin/bash
|
|
$PWD/afl/afl-fuzz "\$@"
|
|
END
|
|
chmod 755 bin/afl-fuzz
|
|
|
|
#
|
|
# AFL-utils
|
|
#
|
|
|
|
#git clone https://github.com/rc0r/afl-utils
|
|
#sed -i -e "s/env python/env python3/" afl-utils/{afl_multikill,afl_multicore,afl_vcrash,afl_collect}
|
|
#cd bin
|
|
#ln -s ../afl-utils/afl_* .
|
|
#cd ..
|