aboutsummaryrefslogtreecommitdiff
path: root/frida_mode/test/python
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-02-18 11:04:45 +0100
committerGitHub <noreply@github.com>2022-02-18 11:04:45 +0100
commita5943dc782d1a6047aaa8f455ab37e4a31369311 (patch)
tree9ffc1ca018245aa6533a9194da7c21a03c4e4a7c /frida_mode/test/python
parent8fc249d210ad49e3dd88d1409877ca64d9884690 (diff)
parentfc7bf33fb144162ede0c2d56b91ad31143113f16 (diff)
downloadafl++-a5943dc782d1a6047aaa8f455ab37e4a31369311.tar.gz
Merge pull request #1332 from WorksButNotTested/module
Module
Diffstat (limited to 'frida_mode/test/python')
-rw-r--r--frida_mode/test/python/GNUmakefile37
-rw-r--r--frida_mode/test/python/Makefile17
2 files changed, 54 insertions, 0 deletions
diff --git a/frida_mode/test/python/GNUmakefile b/frida_mode/test/python/GNUmakefile
new file mode 100644
index 00000000..e4f7857b
--- /dev/null
+++ b/frida_mode/test/python/GNUmakefile
@@ -0,0 +1,37 @@
+PWD:=$(shell pwd)/
+ROOT:=$(PWD)../../../
+BUILD_DIR:=$(PWD)build/
+TESTINSTR_DATA_DIR:=$(BUILD_DIR)in/
+FRIDA_OUT:=$(BUILD_DIR)frida-out
+QEMU_OUT:=$(BUILD_DIR)qemu-out
+
+.PHONY: all clean run qemu frida
+
+all:
+ make -C $(ROOT)frida_mode/
+
+clean:
+ rm -rf $(BUILD_DIR)
+
+$(BUILD_DIR):
+ mkdir -p $@
+
+$(TESTINSTR_DATA_DIR): | $(BUILD_DIR)
+ mkdir -p $@
+
+run:
+ date
+ /usr/bin/python -c 'print("hi");'
+ date
+
+qemu:
+ date
+ $(ROOT)afl-qemu-trace \
+ /usr/bin/python -c 'print("hi");'
+ date
+
+frida:
+ date
+ LD_PRELOAD=$(ROOT)afl-frida-trace.so \
+ python -c 'print("hi");'
+ date
diff --git a/frida_mode/test/python/Makefile b/frida_mode/test/python/Makefile
new file mode 100644
index 00000000..e66cfdef
--- /dev/null
+++ b/frida_mode/test/python/Makefile
@@ -0,0 +1,17 @@
+all:
+ @echo trying to use GNU make...
+ @gmake all || echo please install GNUmake
+
+clean:
+ @gmake clean
+
+run:
+ @gmake run
+
+qemu:
+ @gmake qemu
+
+frida:
+ @gmake frida
+
+