Example/skeleton for using libprotobuf-mutator together with AFL.
- Download and compile AFLplusplus
- Put your protobuffer in
gen/out.proto
- Write your own protobuffer-message-to-raw-data methods
export AFL_CUSTOM_MUTATOR_ONLY=1
export AFL_CUSTOM_MUTATOR_LIBRARY=./path/to/library.so
The current implementation turns enum values into bytes. It was an experiment in encoding regexps as protobuffers. Unfortunately, PBs are not powerful enough to do that.
./build.sh
make