1
0
mirror of https://github.com/rtbrick/bngblaster.git synced 2024-05-06 15:54:57 +00:00
Christian Giese 010fc2bffa AFL Fuzzing Tests
Add AFL fuzzing tests for protocol decode
functions.
2021-02-26 14:02:06 +01:00

535 B

AFL Fuzzing

Install AFL

sudo apt install afl

Build Fuzzing Tests

# cd fuzzing
export AFL_USE_ASAN=1
cmake .
make clean all;

Run Tests

Protocols Decode

# cd fuzzing
afl-fuzz -m none -i protocols_decode_in -o protocols_decode_out ./fuzz-protocols-decode @@

RAM Disks and Saving Your SSD From AFL Fuzzing

... mkdir /tmp/afl-ramdisk && chmod 777 /tmp/afl-ramdisk sudo mount -t tmpfs -o size=512M tmpfs /tmp/afl-ramdisk cp -R bngblaster /tmp/afl-ramdisk/ cd /tmp/afl-ramdisk/bngblaster ...