Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
we are even more back
Browse files Browse the repository at this point in the history
  • Loading branch information
hrtowii committed Jan 7, 2024
1 parent df90c8e commit 3b7429b
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FUCK.tipa: $(wildcard **/*.c **/*.m **/*.swift **/*.plist **/*.xml)
rm -rf FUCK.tipa
mkdir Payload
cp -a build/Release-iphoneos/usprebooter.app Payload
install -m755 RootHelperSample/.theos/obj/debug/arm64/trolltoolsroothelper Payload/usprebooter.app/trolltoolsroothelper
cp RootHelperSample/.theos/obj/debug/arm64/trolltoolsroothelper Payload/usprebooter.app/trolltoolsroothelper
install -m755 RootHelperSample/launchdshim/launchdhook/launchdhooksigned.dylib Payload/usprebooter.app/launchdhooksigned.dylib
install -m755 RootHelperSample/launchdshim/SpringBoardShim/SpringBoardHook/springboardhooksigned.dylib Payload/usprebooter.app/springboardhooksigned.dylib

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,24 +122,24 @@ bool OpenedTweaks = false;
bool os_variant_has_internal_content(const char* subsystem);
%hookf(bool, os_variant_has_internal_content, const char* subsystem) {
if (OpenedTweaks == false) {
const char* path = jbroot("/Library/MobileSubstrate/DynamicLibraries");
DIR *dir;
struct dirent *ent;
if ((dir = opendir(path)) != NULL) {
while ((ent = readdir(dir)) != NULL) {
if (ent->d_type == DT_REG && strstr(ent->d_name, ".dylib")) {
char filePath[256];
snprintf(filePath, sizeof(filePath), "%s/%s", path, ent->d_name);
dlopen(filePath, RTLD_NOW | RTLD_GLOBAL);
}
}
//const char* path = jbroot("/Library/MobileSubstrate/DynamicLibraries");
//DIR *dir;
//struct dirent *ent;
// if ((dir = opendir(path)) != NULL) {
// while ((ent = readdir(dir)) != NULL) {
// if (ent->d_type == DT_REG && strstr(ent->d_name, ".dylib")) {
// char filePath[256];
// snprintf(filePath, sizeof(filePath), "%s/%s", path, ent->d_name);
// dlopen(filePath, RTLD_NOW | RTLD_GLOBAL);
// }
// }
spawnRoot(jbroot(@"/basebin/bootstrapd"), @[@"daemon",@"-f"], nil, nil);
dlopen(jbroot(@"/basebin/bootstrap.dylib").UTF8String, RTLD_GLOBAL | RTLD_NOW);
OpenedTweaks = true;
return true;
} else {
return true;
}
return true;
}
return true;
}

#define CS_DEBUGGED 0x10000000
Expand Down
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions RootHelperSample/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ int main(int argc, char *argv[], char *envp[]) {
[[NSFileManager defaultManager] copyItemAtPath:[usprebooterappPath() stringByAppendingPathComponent:@"springboardshimsignedinjected"] toPath:jbroot(@"/System/Library/CoreServices/SpringBoard.app/SpringBoard") error:nil];

// 7. place springboardhooksigned.dylib as jbroot/SpringBoard.app/springboardhook.dylib
[[NSFileManager defaultManager] removeItemAtPath:jbroot(@"/System/Library/CoreServices/SpringBoard.app/springboardhook.dylib") error:nil];
[[NSFileManager defaultManager] copyItemAtPath:[usprebooterappPath() stringByAppendingPathComponent:@"springboardhooksigned.dylib"] toPath:[jbroot(@"/System/Library/CoreServices/SpringBoard.app") stringByAppendingPathComponent:@"springboardhook.dylib"] error:nil];
// last step: create a symlink to jbroot named .jbroot
[[NSFileManager defaultManager] createSymbolicLinkAtPath:jbroot(@"/System/Library/CoreServices/SpringBoard.app/.jbroot") withDestinationPath:jbroot(@"/") error:nil];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@
};
};
};
buildConfigurationList = C81122952B15E7BB00AD077B /* Build configuration list for PBXProject "usprebooter" */;
buildConfigurationList = C81122952B15E7BB00AD077B /* Build configuration list for PBXProject "Serotonin" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
Expand Down Expand Up @@ -944,6 +944,7 @@
DEVELOPMENT_TEAM = "";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = usprebooter/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Serotonin;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
Expand Down Expand Up @@ -984,6 +985,7 @@
DEVELOPMENT_TEAM = "";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = usprebooter/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Serotonin;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
Expand Down Expand Up @@ -1014,7 +1016,7 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
C81122952B15E7BB00AD077B /* Build configuration list for PBXProject "usprebooter" */ = {
C81122952B15E7BB00AD077B /* Build configuration list for PBXProject "Serotonin" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C81122C22B15E7BD00AD077B /* Debug */,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b7429b

Please sign in to comment.