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:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
.DS_Store
|
||||||
|
/CreditAgricoleTweak
|
||||||
|
/RMHook
|
||||||
|
/rootless
|
||||||
|
Build.md
|
||||||
28
README.md
Normal file
28
README.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Tweaks
|
||||||
|
|
||||||
|
iOS tweaks built with [Theos](https://theos.dev), injected into IPAs via [cyan](https://github.com/asdfzxcvbn/pyzule-rw).
|
||||||
|
|
||||||
|
## Tweaks
|
||||||
|
|
||||||
|
| Tweak | App | Target |
|
||||||
|
| ----------------------------------------------- | ---------------- | ------- |
|
||||||
|
| [ServerCatPremium](ServerCatPremium/index.md) | ServerCat 1.30.0 | iOS 17+ |
|
||||||
|
| [ServerCatPremium (legacy)](ServerCatPremium_/index.md) | ServerCat 1.6.4 | iOS 15 |
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Debug
|
||||||
|
make clean && make package THEOS_PACKAGE_SCHEME=rootless
|
||||||
|
|
||||||
|
# Production
|
||||||
|
make clean && make package THEOS_PACKAGE_SCHEME=rootless DEBUG=0
|
||||||
|
```
|
||||||
|
|
||||||
|
## Inject
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cyan -i <input.ipa> -o <output_patched.ipa> -f <tweak.deb> -u
|
||||||
|
```
|
||||||
|
|
||||||
|
See each tweak's `index.md` for the specific command.
|
||||||
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
|
||||||
|
```
|
||||||
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