Skip to content

Commit

Permalink
feat: fixed springboard hook, no more confidential text (thanks asdfu…
Browse files Browse the repository at this point in the history
…gil)
  • Loading branch information
hrtowii committed Jul 16, 2024
1 parent 7ecf020 commit 4a1845e
Show file tree
Hide file tree
Showing 21 changed files with 575 additions and 507 deletions.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@ SHELL = /usr/bin/env bash
LDID = ldid
MACOSX_SYSROOT = $(shell xcrun -sdk macosx --show-sdk-path)
TARGET_SYSROOT = $(shell xcrun -sdk iphoneos --show-sdk-path)

SB_SHIM = RootHelperSample/launchdshim/SpringBoardShim/
CFPREFSD_SHIM = RootHelperSample/launchdshim/cfprefsdshim/

all: Serotonin.tipa

shims:
echo "[*] Building cfprefsdshim"
$(MAKE) -C $(CFPREFSD_SHIM)
/Users/ibarahime/Downloads/ldid_macosx_arm64 -S$(CFPREFSD_SHIM)ent.plist $(CFPREFSD_SHIM).theos/obj/debug/cfprefsdshim
/Users/ibarahime/dev/ChOma/ct_bypass -i $(CFPREFSD_SHIM).theos/obj/debug/cfprefsdshim -r -o $(CFPREFSD_SHIM)cfprefsdshimsignedinjected
echo "[*] Building springboardshim"
$(MAKE) -C $(SB_SHIM)
/Users/ibarahime/Downloads/ldid_macosx_arm64 -S$(SB_SHIM)SpringBoardEnts.plist $(SB_SHIM).theos/obj/debug/springboardshim
/Users/ibarahime/dev/ChOma/ct_bypass -i $(SB_SHIM).theos/obj/debug/springboardshim -r -o $(SB_SHIM)springboardshimsignedinjected


Serotonin.tipa: $(wildcard **/*.c **/*.m **/*.swift **/*.plist **/*.xml)
echo "[*] Building ChOma for host"
$(MAKE) -C ChOma
Expand Down
3 changes: 2 additions & 1 deletion RootHelperSample/launchdshim/SpringBoardShim/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TARGET := iphone:clang:latest
TARGET := iphone:clang:16.5
ARCHS = arm64

include $(THEOS)/makefiles/common.mk
Expand All @@ -11,6 +11,7 @@ springboardshim_LDFLAGS = -L./ -lbsm
springboardshim_CODESIGN_FLAGS = -SSpringBoardEnts.plist
#springboardshim_PRIVATE_FRAMEWORKS = SpringBoard SpringBoardServices Foundation // adding SpringBoard to privateframeworks here will add it into load command before the tweak dylib is loaded, which causes the platform check to fail - thanks DuyKhanhTran

# EDIT THE LIBHOOKER TBD TO USE @loader_path/.jbroot/usr/lib/libhooker.dylib in $THEOS/vendor/lib/libhooker.tbd
after-package::
ct_bypass -i .theos/obj/debug/springboardshim -o springboardshimsigned

Expand Down
9 changes: 0 additions & 9 deletions RootHelperSample/launchdshim/SpringBoardShim/build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
function replaceByte() {
printf "\x00\x00\x00\x00" | dd of="$1" bs=1 seek=$2 count=4 conv=notrunc &> /dev/null
}

make
# /Users/ibarahime/insert_dylib/insert_dylib/insert_dylib /var/jb/usr/lib/ellekit/libinjector.dylib .theos/obj/debug/arm64e/springboardshim springboardshiminjected --all-yes
# /Users/ibarahime/insert_dylib/insert_dylib/insert_dylib /var/jb/usr/lib/libellekit.dylib springboardshiminjected springboardshiminjected --all-yes
# /Users/ibarahime/dev/insert_dylib/insert_dylib/a.out @loader_path/springboardhook.dylib .theos/obj/debug/arm64/springboardshim springboardshiminjected --all-yes

# replaceByte 'springboardshiminjected' 8
/Users/ibarahime/Downloads/ldid_macosx_arm64 -SSpringBoardEnts.plist springboardshiminjected
/Users/ibarahime/dev/ChOma/ct_bypass -i springboardshiminjected -r -o springboardshimsignedinjected

277 changes: 0 additions & 277 deletions RootHelperSample/launchdshim/SpringBoardShim/fishhook.c

This file was deleted.

Loading

0 comments on commit 4a1845e

Please sign in to comment.