diff options
author | Your Name <you@example.com> | 2022-02-18 08:20:51 +0000 |
---|---|---|
committer | Your Name <you@example.com> | 2022-02-18 08:20:51 +0000 |
commit | fcd06fa99ceeeb9769102357257be0c1e192641e (patch) | |
tree | 412d18553cb69150498ebc7706a51510beeb2478 | |
parent | 5f45f380c3d9837a5a8457cf749b27a8afbd3f53 (diff) | |
download | afl++-fcd06fa99ceeeb9769102357257be0c1e192641e.tar.gz |
Added test for running 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 + + |