diff options
author | Pwn20wnd <pwn20wndstuff@gmail.com> | 2019-02-10 20:43:19 +0300 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-02-10 14:38:03 -1000 |
commit | 26429b42ace55d2dc4eecba7a5a648cc49811941 (patch) | |
tree | 473ed8d0a53975e2d06d0d40dd356ab87dd508fb | |
parent | fd173298abf775de4275db48a2870f0fea9b6bc5 (diff) |
Use the updated patchfinder64 from submodulev0.4%b2
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | main.m | 4 | ||||
m--------- | patchfinder64 | 0 |
4 files changed, 8 insertions, 4 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8cafbbc --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "patchfinder64"] + path = patchfinder64 + url = git@github.com:sbingner/patchfinder64.git @@ -1,12 +1,13 @@ ARCHS ?= arm64 target ?= iphone:latest:11.0 -CFLAGS = -Iinclude +CFLAGS = -Iinclude -Wno-error=unused-variable -Wno-error=unused-function include $(THEOS)/makefiles/common.mk TOOL_NAME = inject inject_CODESIGN_FLAGS = -Sentitlements.xml +inject_CFLAGS += -I./patchfinder64 -Wno-unused-variable -Wno-unused-function inject_LIBRARIES = mis inject_FRAMEWORKS = IOKit Security -inject_FILES = main.m inject.m patchfinder64.c kern_funcs.c +inject_FILES = main.m inject.m patchfinder64/patchfinder64.c kern_funcs.c include $(THEOS_MAKE_PATH)/tool.mk @@ -9,7 +9,7 @@ #include <CoreFoundation/CoreFoundation.h> #include <mach/mach.h> #include <dlfcn.h> -#include "patchfinder64.h" +#include "patchfinder64/patchfinder64.h" #include "CSCommon.h" #include "kern_funcs.h" #include "inject.h" @@ -46,7 +46,7 @@ int main(int argc, char* argv[]) { (kernel_base = dyld_info.all_image_info_addr) == 0) { return -3; } - init_kernel(kernel_base, NULL); + init_kernel(kread, kernel_base, NULL); uint64_t trust_chain = find_trustcache(); term_kernel(); printf("Injecting to trust cache...\n"); diff --git a/patchfinder64 b/patchfinder64 new file mode 160000 +Subproject 2c10f54e7658c4a09dbc79f2d9600a62a242701 |