mirror of
https://github.com/NohamR/Tweaks.git
synced 2026-05-25 04:17:15 +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",
|
||||
);
|
||||
};
|
||||
}
|
||||
26
ServerCatPremium_/Tweak.x
Normal file
26
ServerCatPremium_/Tweak.x
Normal file
@@ -0,0 +1,26 @@
|
||||
#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 0x100454D70 // 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
9
ServerCatPremium_/control
Normal file
9
ServerCatPremium_/control
Normal file
@@ -0,0 +1,9 @@
|
||||
Package: xyz.nohamr
|
||||
Name: ServerCatPremium (Legacy)
|
||||
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)
|
||||
22
ServerCatPremium_/index.md
Normal file
22
ServerCatPremium_/index.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# ServerCatPremium (legacy — iOS 15)
|
||||
|
||||
Unlocks premium features in ServerCat by forcing `isPremiumActive` (`sub_100454D70`) to always return `1`.
|
||||
|
||||
- **App**: [ServerCat – SSH Terminal](https://apps.apple.com/us/app/servercat-ssh-terminal/id1501532023)
|
||||
- **Tested on**: ServerCat 1.6.4, iOS 15.8.6
|
||||
- **Note**: ServerCat 1.6.4 is the last version supporting iOS 15. Latest requires iOS 17+.
|
||||
|
||||
## Build
|
||||
|
||||
```sh
|
||||
make clean && make package THEOS_PACKAGE_SCHEME=rootless DEBUG=0
|
||||
```
|
||||
|
||||
## Inject
|
||||
|
||||
```sh
|
||||
cyan -i tech.baye.servercat-1.6.4.ipa \
|
||||
-o tech.baye.servercat-1.6.4_patched.ipa \
|
||||
-f xyz.nohamr_1.0.0-1_iphoneos-arm64.deb \
|
||||
-u
|
||||
```
|
||||
Reference in New Issue
Block a user