diff options
author | vanhauser-thc <vh@thc.org> | 2023-01-19 17:24:56 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-01-19 17:24:56 +0100 |
commit | 628b4b60021a0d62a2eccddca4fe321c9d57c663 (patch) | |
tree | 4794903a0c87baa2ec265266c6a9cab4136b8310 /custom_mutators/examples/custom_send.c | |
parent | 86d3c65559209ce12452e18daf96946222c19b46 (diff) | |
download | afl++-628b4b60021a0d62a2eccddca4fe321c9d57c663.tar.gz |
enhance examples
Diffstat (limited to 'custom_mutators/examples/custom_send.c')
-rw-r--r-- | custom_mutators/examples/custom_send.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/custom_mutators/examples/custom_send.c b/custom_mutators/examples/custom_send.c index ffea927e..7de72819 100644 --- a/custom_mutators/examples/custom_send.c +++ b/custom_mutators/examples/custom_send.c @@ -1,7 +1,14 @@ +// +// This is an example on how to use afl_custom_send +// It writes each mutated data set to /tmp/foo +// You can modify this to send to IPC, shared memory, etc. +// // cc -O3 -fPIC -shared -g -o custom_send.so -I../../include custom_send.c // cd ../.. // afl-cc -o test-instr test-instr.c -// afl-fuzz -i in -o out -- ./test-instr -f /tmp/foo +// AFL_CUSTOM_MUTATOR_LIBRARY=custom_mutators/examples/custom_send.so \ +// afl-fuzz -i in -o out -- ./test-instr -f /tmp/foo +// #include "custom_mutator_helpers.h" |