diff options
| author | Your Name <you@example.com> | 2021-08-26 18:06:41 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2021-08-26 18:06:41 +0100 |
| commit | e5f5d5886af5d3fad07c2e64945236258b3aca23 (patch) | |
| tree | a35abfb3649e7a58335926f91c3ddd80fc82581f /frida_mode/test | |
| parent | 86f920f64535e724752022fced4e0b7e5c7d121a (diff) | |
| download | afl++-e5f5d5886af5d3fad07c2e64945236258b3aca23.tar.gz | |
Add unstable coverage support
Diffstat (limited to 'frida_mode/test')
| -rw-r--r-- | frida_mode/test/unstable/GNUmakefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/frida_mode/test/unstable/GNUmakefile b/frida_mode/test/unstable/GNUmakefile index c5fe1b88..0ccc5fb1 100644 --- a/frida_mode/test/unstable/GNUmakefile +++ b/frida_mode/test/unstable/GNUmakefile @@ -85,6 +85,21 @@ frida: $(UNSTABLE_BIN) $(UNSTABLE_DATA_FILE) -- \ $(UNSTABLE_BIN) @@ +frida_coverage: $(UNSTABLE_BIN) $(UNSTABLE_DATA_FILE) + AFL_DEBUG=1 \ + AFL_FRIDA_PERSISTENT_ADDR=$(AFL_FRIDA_PERSISTENT_ADDR) \ + AFL_FRIDA_OUTPUT_STDOUT=/tmp/stdout.txt \ + AFL_FRIDA_OUTPUT_STDERR=/tmp/stderr.txt \ + AFL_FRIDA_INST_COVERAGE_FILE=/tmp/coverage.dat \ + AFL_FRIDA_INST_UNSTABLE_COVERAGE_FILE=/tmp/unstable.dat \ + $(ROOT)afl-fuzz \ + -D \ + -O \ + -i $(UNSTABLE_DATA_DIR) \ + -o $(FRIDA_OUT) \ + -- \ + $(UNSTABLE_BIN) @@ + debug: gdb \ --ex 'set environment LD_PRELOAD=$(ROOT)afl-frida-trace.so' \ |
