tree: b6e0e9bcdb2c655d42b9bc0595d70c7e4a64726e [path history] [tgz]
  1. Makefile
  2. read_into_rdi.c
  3. README.md
  4. test.c
utils/qemu_persistent_hook/README.md

QEMU persistent hook example

Compile the test binary and the library:

make

Fuzz with:

export AFL_QEMU_PERSISTENT_ADDR=0x$(nm test | grep "T target_func" | awk '{print $1}')
export AFL_QEMU_PERSISTENT_HOOK=./read_into_rdi.so

mkdir in
echo 0000 > in/in

../../afl-fuzz -Q -i in -o out -- ./test