diff options
| author | van Hauser <vh@thc.org> | 2021-08-27 08:39:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-27 08:39:27 +0200 |
| commit | 066f60dd2f1db256d8301755218e4ec69e643163 (patch) | |
| tree | 6e49c340744e4436c2e6be990c1bd8b91ca13133 /frida_mode/test | |
| parent | 31e34c1634e5b5bf43c6c1a8451557fe48da2771 (diff) | |
| parent | e5f5d5886af5d3fad07c2e64945236258b3aca23 (diff) | |
| download | afl++-066f60dd2f1db256d8301755218e4ec69e643163.tar.gz | |
Merge pull request #1078 from WorksButNotTested/unstable-coverage
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' \ |
