Skip to content

Commit

Permalink
feat: MediaRemoteUI support, cleanup csopshook for springboard
Browse files Browse the repository at this point in the history
  • Loading branch information
htrowii committed Jul 15, 2024
1 parent 143e7f2 commit 7ecf020
Show file tree
Hide file tree
Showing 39 changed files with 2,511 additions and 156 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ Serotonin.tipa: $(wildcard **/*.c **/*.m **/*.swift **/*.plist **/*.xml)
echo "[*] Signing SB hook"
./ChOma_host/output/tests/ct_bypass -i RootHelperSample/launchdshim/SpringBoardShim/SpringBoardHook/.theos/obj/debug/SpringBoardHook.dylib -r -o RootHelperSample/launchdshim/SpringBoardShim/SpringBoardHook/springboardhooksigned.dylib

echo "[*] Building general hook"
$(MAKE) -C RootHelperSample/launchdshim/generalhook

echo "[*] Signing general hook"
./ChOma_host/output/tests/ct_bypass -i RootHelperSample/launchdshim/generalhook/.theos/obj/debug/generalhook.dylib -r -o RootHelperSample/launchdshim/generalhook/generalhook.dylib

echo "[*] Building hideconfidentiatext"
$(MAKE) -C RootHelperSample/launchdshim/hideConfidentialText/


echo "[*] Signing hideconfidentialtext"
./ChOma_host/output/tests/ct_bypass -i RootHelperSample/launchdshim/hideConfidentialText/.theos/obj/debug/hideConfidentialText.dylib -r -o RootHelperSample/launchdshim/SpringBoardShim/SpringBoardHook/hideConfidentialText.dylib

Expand All @@ -51,12 +56,13 @@ Serotonin.tipa: $(wildcard **/*.c **/*.m **/*.swift **/*.plist **/*.xml)
mkdir Payload
cp -a build/Build/Products/Release-iphoneos/Serotonin.app Payload
rm -rf Payload/Serotonin.app/Frameworks
cp RootHelperSample/.theos/obj/debug/arm64/trolltoolsroothelper Payload/Serotonin.app/trolltoolsroothelper
cp RootHelperSample/.theos/obj/debug/arm64/serotoninroothelper Payload/Serotonin.app/serotoninroothelper
install -m755 RootHelperSample/launchdshim/launchdhook/launchdhooksigned.dylib Payload/Serotonin.app/launchdhooksigned.dylib
install -m755 RootHelperSample/launchdshim/SpringBoardShim/SpringBoardHook/springboardhooksigned.dylib Payload/Serotonin.app/springboardhooksigned.dylib
install -m755 RootHelperSample/launchdshim/generalhook/generalhook.dylib Payload/Serotonin.app/generalhooksigned.dylib
install -m755 RootHelperSample/launchdshim/hideConfidentialText/.theos/obj/debug/hideConfidentialText.dylib Payload/Serotonin.app/hideconfidentialtext.dylib
cp RootHelperSample/launchdshim/hideConfidentialText/hideconfidentialtext.plist Payload/Serotonin.app/hideconfidentialtext.plist
$(LDID) -S./RootHelperSample/entitlements.plist -Cadhoc Payload/Serotonin.app/{fastPathSign,ldid,trolltoolsroothelper}
$(LDID) -S./RootHelperSample/entitlements.plist -Cadhoc Payload/Serotonin.app/{fastPathSign,ldid,serotoninroothelper}
$(LDID) -Sent.plist -Cadhoc Payload/Serotonin.app/Serotonin
zip -vr9 Serotonin.tipa Payload/ -x "*.DS_Store"

Expand Down
16 changes: 8 additions & 8 deletions RootHelperSample/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ ARCHS = arm64

include $(THEOS)/makefiles/common.mk

TOOL_NAME = trolltoolsroothelper
TOOL_NAME = serotoninroothelper

trolltoolsroothelper_FILES = $(wildcard *.m) Exploits/fastPathSign/src/coretrust_bug.c Exploits/fastPathSign/src/codesign.m
trolltoolsroothelper_LDFLAGS = -Lexternal/lib -lcrypto -lchoma
trolltoolsroothelper_CFLAGS = -fobjc-arc $(shell pkg-config --cflags libcrypto) -Iexternal/include -Wmissing-braces -IExploits/fastPathSign/src
trolltoolsroothelper_CODESIGN_FLAGS = -Sentitlements.plist
trolltoolsroothelper_INSTALL_PATH = /usr/local/bin
trolltoolsroothelper_LIBRARIES = archive
trolltoolsroothelper_PRIVATE_FRAMEWORKS = SpringBoardServices BackBoardServices MobileCoreServices MobileContainerManager IOKit
$(TOOL_NAME)_FILES = $(wildcard *.m) $(wildcard *.c) Exploits/fastPathSign/src/coretrust_bug.c Exploits/fastPathSign/src/codesign.m
$(TOOL_NAME)_LDFLAGS = -Lexternal/lib -lcrypto -lchoma
$(TOOL_NAME)_CFLAGS = -fobjc-arc $(shell pkg-config --cflags libcrypto) -Iexternal/include -Wno-error -IExploits/fastPathSign/src
$(TOOL_NAME)_CODESIGN_FLAGS = -Sentitlements.plist
$(TOOL_NAME)_INSTALL_PATH = /usr/local/bin
$(TOOL_NAME)_LIBRARIES = archive
$(TOOL_NAME)_PRIVATE_FRAMEWORKS = SpringBoardServices BackBoardServices MobileCoreServices MobileContainerManager IOKit

include $(THEOS_MAKE_PATH)/tool.mk
4 changes: 4 additions & 0 deletions RootHelperSample/RootHelperSample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@
C82AFF042B1762CD0070EA49 /* CoreServices.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CoreServices.h; sourceTree = "<group>"; };
C82AFF052B1762CD0070EA49 /* RemoteLog.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RemoteLog.h; sourceTree = "<group>"; };
C82AFF062B1762CD0070EA49 /* control */ = {isa = PBXFileReference; lastKnownFileType = text; path = control; sourceTree = "<group>"; };
C870DFE02C42EFA2003A17A5 /* exepatch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = exepatch.h; sourceTree = "<group>"; };
C870DFE12C42EFA2003A17A5 /* exepatch.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = exepatch.c; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXGroup section */
C82AFEF52B1762CD0070EA49 = {
isa = PBXGroup;
children = (
C870DFE12C42EFA2003A17A5 /* exepatch.c */,
C870DFE02C42EFA2003A17A5 /* exepatch.h */,
C82AFEFB2B1762CD0070EA49 /* .DS_Store */,
C82AFEFC2B1762CD0070EA49 /* uicache.h */,
C82AFEFD2B1762CD0070EA49 /* .theos */,
Expand Down
2 changes: 1 addition & 1 deletion RootHelperSample/TSUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void loadMCMFramework(void)
#else
NSString* rootHelperPath(void)
{
return [[NSBundle mainBundle].bundlePath stringByAppendingPathComponent:@"trolltoolsroothelper"];
return [[NSBundle mainBundle].bundlePath stringByAppendingPathComponent:@"serotoninroothelper"];
}
#endif

Expand Down
Loading

0 comments on commit 7ecf020

Please sign in to comment.