diff options
| author | van Hauser <vh@thc.org> | 2022-04-03 09:30:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-03 09:30:23 +0200 |
| commit | 881aef21fd6ca3f3bcf0847587d4d6d86f3a69db (patch) | |
| tree | d076384dedf423a4bb7c3d1507cb07281ebc2865 /frida_mode/test/python | |
| parent | 1d4f1e48797c064ee71441ba555b29fc3f467983 (diff) | |
| parent | c4363dd8b3d19a3e4bab8bc1fca1708ae2ff7899 (diff) | |
| download | afl++-881aef21fd6ca3f3bcf0847587d4d6d86f3a69db.tar.gz | |
Merge pull request #1362 from AFLplusplus/dev
push to stable
Diffstat (limited to 'frida_mode/test/python')
| -rw-r--r-- | frida_mode/test/python/GNUmakefile | 37 | ||||
| -rw-r--r-- | frida_mode/test/python/Makefile | 17 |
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 + + |
