diff options
author | WorksButNotTested <62701594+WorksButNotTested@users.noreply.github.com> | 2021-07-06 08:09:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 09:09:43 +0200 |
commit | 2a433f90c456b19cf9aa39384540f618c6eeb1a8 (patch) | |
tree | d5c44a780cd74a7b1931a7bd17ac8ad4bc0d65e4 /frida_mode/test/js | |
parent | bf9a15541888ac8836a70b4d01c2c9e7bd940051 (diff) | |
download | afl++-2a433f90c456b19cf9aa39384540f618c6eeb1a8.tar.gz |
Improved OSX support (#1005)
Co-authored-by: Your Name <you@example.com>
Diffstat (limited to 'frida_mode/test/js')
-rw-r--r-- | frida_mode/test/js/GNUmakefile | 6 | ||||
-rw-r--r-- | frida_mode/test/js/entry.js | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/frida_mode/test/js/GNUmakefile b/frida_mode/test/js/GNUmakefile index af40c1c4..766862a5 100644 --- a/frida_mode/test/js/GNUmakefile +++ b/frida_mode/test/js/GNUmakefile @@ -13,6 +13,10 @@ TESTINSTSRC2:=$(PWD)test2.c QEMU_OUT:=$(BUILD_DIR)qemu-out FRIDA_OUT:=$(BUILD_DIR)frida-out +ifeq "$(shell uname)" "Darwin" +AFL_PRELOAD=/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation +endif + .PHONY: all 32 clean qemu frida all: $(TESTINSTBIN) $(TESTINSTBIN2) @@ -40,12 +44,14 @@ clean: rm -rf $(BUILD_DIR) frida_js_entry: $(TESTINSTBIN) $(TEST_DATA_FILE) + AFL_PRELOAD=$(AFL_PRELOAD) \ AFL_FRIDA_JS_SCRIPT=entry.js \ $(ROOT)afl-fuzz \ -D \ -O \ -i $(TEST_DATA_DIR) \ -o $(FRIDA_OUT) \ + -t 10000+ \ -- \ $(TESTINSTBIN) @@ diff --git a/frida_mode/test/js/entry.js b/frida_mode/test/js/entry.js index f10ef2d1..0b233ddb 100644 --- a/frida_mode/test/js/entry.js +++ b/frida_mode/test/js/entry.js @@ -9,8 +9,9 @@ new ModuleMap().values().forEach(m => { Afl.print(`${m.base}-${m.base.add(m.size)} ${m.name}`); }); +Afl.print('Searching...\n'); const entry_point = DebugSymbol.fromName('run'); -Afl.print(`entry_point: ${entry_point.address}`); +Afl.print(`entry_point: ${entry_point}`); Afl.setEntryPoint(entry_point.address); |