Skip to content

Commit

Permalink
Fix broken kfd patchfinder
Browse files Browse the repository at this point in the history
  • Loading branch information
coolstar committed Sep 23, 2023
1 parent 77ac141 commit b4824a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Taurine.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Taurine/resources",
);
MARKETING_VERSION = "1.1.7-2";
MARKETING_VERSION = "1.1.7-3";
PRODUCT_BUNDLE_IDENTIFIER = org.coolstar.taurine;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -1046,7 +1046,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Taurine/resources",
);
MARKETING_VERSION = "1.1.7-2";
MARKETING_VERSION = "1.1.7-3";
PRODUCT_BUNDLE_IDENTIFIER = org.coolstar.taurine;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
8 changes: 4 additions & 4 deletions Taurine/exploit/kfd/libkfd/krkw/kread/kread_IOSurface.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ u64 patchfind_kernproc(struct kfd* kfd, u64 kernel_base)

u64 ldrKaddr = 0;
u32 ldrInstr = 0;
for (u32 i = 0; i < 30; i++) {
u64 addr = ldrKaddr-(4*i);
for (u32 i = 0; i < 20; i++) {
u64 addr = movKaddr+(4*i);
u32 instr = 0;
kread_((u64)kfd, addr, &instr, sizeof(instr));
if ((instr & 0xFFC00000) == 0xF9400000) { // check if ldr (we automatically filter the shit one out here)
Expand All @@ -188,8 +188,8 @@ u64 patchfind_kernproc(struct kfd* kfd, u64 kernel_base)

u64 adrpKaddr = 0;
u32 adrpInstr = 0;
for (u32 i = 0; i < 20; i++) {
u64 addr = movKaddr+(4*i);
for (u32 i = 0; i < 30; i++) {
u64 addr = ldrKaddr-(4*i);
u32 instr = 0;
kread_((u64)kfd, addr, &instr, sizeof(instr));
if ((instr & adrpFindMask) == adrpFind) {
Expand Down

0 comments on commit b4824a0

Please sign in to comment.