1
0
mirror of https://github.com/rtbrick/bngblaster.git synced 2024-05-06 15:54:57 +00:00

35 lines
536 B
Markdown
Raw Normal View History

# 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
2021-02-26 15:05:28 +01:00
```
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
2021-02-26 15:05:28 +01:00
```