mirror of
https://github.com/NohamR/Tweaks.git
synced 2026-05-24 19:59:59 +00:00
Add ServerCatPremium tweaks, build files and docs
This commit is contained in:
3
ServerCatPremium/.gitignore
vendored
Normal file
3
ServerCatPremium/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.theos/
|
||||
packages/
|
||||
.DS_Store
|
||||
13
ServerCatPremium/Makefile
Normal file
13
ServerCatPremium/Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
TARGET = iphone:latest:14.0
|
||||
INSTALL_TARGET_PROCESSES = ServerCat
|
||||
ARCHS = arm64 arm64e
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
TWEAK_NAME = ServerCatPremium
|
||||
|
||||
ServerCatPremium_FILES = Tweak.x
|
||||
ServerCatPremium_CFLAGS = -fobjc-arc
|
||||
ServerCatPremium_FRAMEWORKS = Foundation
|
||||
|
||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||
7
ServerCatPremium/ServerCatPremium.plist
Normal file
7
ServerCatPremium/ServerCatPremium.plist
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
Filter = {
|
||||
Bundles = (
|
||||
"tech.baye.servercat",
|
||||
);
|
||||
};
|
||||
}
|
||||
39
ServerCatPremium/Tweak.x
Normal file
39
ServerCatPremium/Tweak.x
Normal file
@@ -0,0 +1,39 @@
|
||||
#import <substrate.h>
|
||||
#import <mach-o/dyld.h>
|
||||
#import <string.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#define TARGET_MODULE "ServerCat"
|
||||
#define IDA_BASE 0x100000000
|
||||
#define ADDR_IS_PREMIUM 0x10009CD24 // Address of "isPremiumActive" in IDA (adjust if needed)
|
||||
|
||||
static int (*orig_isPremiumActive)();
|
||||
static int hook_isPremiumActive() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
%ctor {
|
||||
for (uint32_t i = 0; i < _dyld_image_count(); i++) {
|
||||
const char *name = _dyld_get_image_name(i);
|
||||
if (name && strstr(name, TARGET_MODULE)) {
|
||||
uintptr_t base = (uintptr_t)_dyld_get_image_header(i);
|
||||
uintptr_t addr = base + (ADDR_IS_PREMIUM - IDA_BASE);
|
||||
MSHookFunction((void *)addr, (void *)hook_isPremiumActive, (void **)&orig_isPremiumActive);
|
||||
NSLog(@"[ServerCatPremium] Hooked isPremiumActive at 0x%lx", addr);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// iOS 16 Crash Fix
|
||||
%hook CKContainer
|
||||
+ (id)defaultContainer {
|
||||
return nil;
|
||||
}
|
||||
|
||||
+ (id)containerWithIdentifier:(id)arg1 {
|
||||
arg1 = nil;
|
||||
return nil;
|
||||
return %orig;
|
||||
}
|
||||
%end
|
||||
9
ServerCatPremium/control
Normal file
9
ServerCatPremium/control
Normal file
@@ -0,0 +1,9 @@
|
||||
Package: xyz.nohamr
|
||||
Name: ServerCatPremium (Latest)
|
||||
Version: 1.0.0
|
||||
Architecture: iphoneos-arm
|
||||
Description: Unlocks premium features in ServerCat app.
|
||||
Maintainer: NohamR
|
||||
Author: NohamR
|
||||
Section: Tweaks
|
||||
Depends: mobilesubstrate (>= 0.9.5000)
|
||||
21
ServerCatPremium/index.md
Normal file
21
ServerCatPremium/index.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# ServerCatPremium
|
||||
|
||||
Unlocks premium features in ServerCat by forcing `isPremiumActive` (`sub_10009CD24`) to always return `1`.
|
||||
|
||||
- **App**: [ServerCat – SSH Terminal](https://apps.apple.com/us/app/servercat-ssh-terminal/id1501532023)
|
||||
- **Tested on**: ServerCat 1.30.0 (600), iOS 18.3
|
||||
|
||||
## Build
|
||||
|
||||
```sh
|
||||
make clean && make package THEOS_PACKAGE_SCHEME=rootless DEBUG=0
|
||||
```
|
||||
|
||||
## Inject
|
||||
|
||||
```sh
|
||||
cyan -i tech.baye.servercat-1.30.0.ipa \
|
||||
-o tech.baye.servercat-1.30.0_patched.ipa \
|
||||
-f xyz.nohamr_1.0.0-1_iphoneos-arm64.deb \
|
||||
-u
|
||||
```
|
||||
Reference in New Issue
Block a user