aboutsummaryrefslogtreecommitdiff
path: root/frida_mode/test/cmplog
diff options
context:
space:
mode:
authorWorksButNotTested <62701594+WorksButNotTested@users.noreply.github.com>2021-06-08 08:55:12 +0100
committerGitHub <noreply@github.com>2021-06-08 09:55:12 +0200
commitc7b9171c103fc80da75d2b9648b62aa87cbe76fd (patch)
treef66ce81c3812c1ce6f03aeb23f5a0956b19d517a /frida_mode/test/cmplog
parentcd95dfe1e70d5fe3d33a5fed26565a407688568a (diff)
downloadafl++-c7b9171c103fc80da75d2b9648b62aa87cbe76fd.tar.gz
FRIDA AARCH64 support (#965)
Co-authored-by: Your Name <you@example.com>
Diffstat (limited to 'frida_mode/test/cmplog')
-rw-r--r--frida_mode/test/cmplog/GNUmakefile11
-rw-r--r--frida_mode/test/cmplog/Makefile4
-rw-r--r--frida_mode/test/cmplog/cmplog.c2
3 files changed, 15 insertions, 2 deletions
diff --git a/frida_mode/test/cmplog/GNUmakefile b/frida_mode/test/cmplog/GNUmakefile
index 40de6a09..4c71bb33 100644
--- a/frida_mode/test/cmplog/GNUmakefile
+++ b/frida_mode/test/cmplog/GNUmakefile
@@ -13,7 +13,7 @@ CMP_LOG_INPUT:=$(TEST_DATA_DIR)in
QEMU_OUT:=$(BUILD_DIR)qemu-out
FRIDA_OUT:=$(BUILD_DIR)frida-out
-.PHONY: all 32 clean qemu frida format
+.PHONY: all 32 clean qemu frida frida-nocmplog format
all: $(TEST_CMPLOG_OBJ)
make -C $(ROOT)frida_mode/
@@ -55,6 +55,15 @@ frida: $(TEST_CMPLOG_OBJ) $(CMP_LOG_INPUT)
-- \
$(TEST_CMPLOG_OBJ) @@
+frida-nocmplog: $(TEST_CMPLOG_OBJ) $(CMP_LOG_INPUT)
+ $(ROOT)afl-fuzz \
+ -O \
+ -i $(TEST_DATA_DIR) \
+ -o $(FRIDA_OUT) \
+ -Z \
+ -- \
+ $(TEST_CMPLOG_OBJ) @@
+
debug: $(TEST_CMPLOG_OBJ) $(CMP_LOG_INPUT)
gdb \
--ex 'set environment LD_PRELOAD=$(ROOT)afl-frida-trace.so' \
diff --git a/frida_mode/test/cmplog/Makefile b/frida_mode/test/cmplog/Makefile
index 606b43a5..7ca9a9a5 100644
--- a/frida_mode/test/cmplog/Makefile
+++ b/frida_mode/test/cmplog/Makefile
@@ -15,6 +15,10 @@ qemu:
frida:
@gmake frida
+
+frida-nocmplog:
+ @gmake frida-nocmplog
+
format:
@gmake format
diff --git a/frida_mode/test/cmplog/cmplog.c b/frida_mode/test/cmplog/cmplog.c
index 99010645..ce5cf20e 100644
--- a/frida_mode/test/cmplog/cmplog.c
+++ b/frida_mode/test/cmplog/cmplog.c
@@ -53,7 +53,7 @@ int main(int argc, char **argv) {
}
-#if defined(__x86_64__)
+#if defined(__x86_64__) || defined(__aarch64__)
uint64_t x = 0;
fread(&x, sizeof(x), 1, file);
if (x != 0xCAFEBABECAFEBABE) {