Jump to content

40 posts in this topic

Recommended Posts

Posted

Hi, 

I was busy making tweaks using theos but im facing a problem where my tweaks (.dylibs) works perfectly fine on Playcover but does not when in my iphone, i followed every tutorials, and still no 

please help, i dont known if the iosGod .dylibs have some sort of bypass code that makes it works and i dont have it

Just now, A1XEN said:

Hi, 

I was busy making tweaks using theos but im facing a problem where my tweaks (.dylibs) works perfectly fine on Playcover but does not when in my iphone, i followed every tutorials, and still no 

please help, i dont known if the iosGod .dylibs have some sort of bypass code that makes it works and i dont have it

@Rook @Laxus @Puddin

Posted (edited)
17 minutes ago, A1XEN said:

Hi, 

I was busy making tweaks using theos but im facing a problem where my tweaks (.dylibs) works perfectly fine on Playcover but does not when in my iphone, i followed every tutorials, and still no 

please help, i dont known if the iosGod .dylibs have some sort of bypass code that makes it works and i dont have it

@Rook @Laxus @Puddin

#import <UIKit/UIKit.h>
#import <mach-o/dyld.h>
#import <substrate.h>
#import <pthread.h>

uintptr_t get_FrameworkBaseAddress() {
    uint32_t count = _dyld_image_count();
    for (uint32_t i = 0; i < count; i++) {
        const char *name = _dyld_get_image_name(i);
        if (name && strstr(name, "UnityFramework")) {
            return (uintptr_t)_dyld_get_image_header(i);
        }
    }
    return 0;
}

void writeLocalLog(NSString *text) {
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *logFilePath = [documentsDirectory stringByAppendingPathComponent:@"tweak_debug.txt"];
    
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSString *timestamp = [formatter stringFromDate:[NSDate date]];
    NSString *finalLine = [NSString stringWithFormat:@"[%@] %@\n", timestamp, text];
    
    NSFileHandle *handle = [NSFileHandle fileHandleForWritingAtPath:logFilePath];
    if (!handle) {
        [[finalLine dataUsingEncoding:NSUTF8StringEncoding] writeToFile:logFilePath atomically:YES];
    } else {
        [handle seekToEndOfFile];
        [handle writeData:[finalLine dataUsingEncoding:NSUTF8StringEncoding]];
        [handle closeFile];
    }
}

bool (*old_CanBuy)(void *instance, void *requireMoney, void *methodInfo);
bool new_CanBuy(void *instance, void *requireMoney, void *methodInfo) {
    writeLocalLog(@"[MoneyManager] CanBuy intercepted! Forcing true.");
    return true; 
}

void (*old_RemoveMoney)(void *instance, void *value, void *methodInfo);
void new_RemoveMoney(void *instance, void *value, void *methodInfo) {
    writeLocalLog(@"[MoneyManager] RemoveMoney intercepted! Protecting wallet balance.");
}

void *hook_worker_thread(void *args) {
    @autoreleasepool {
        writeLocalLog(@"MoneyManager Wallet Thread spawned safely.");
        
        uintptr_t baseAddress = get_FrameworkBaseAddress();
        while (baseAddress == 0) {
            usleep(200000); 
            baseAddress = get_FrameworkBaseAddress();
        }

        sleep(4); 

        NSString *addressLog = [NSString stringWithFormat:@"[Debug] UnityFramework Base: 0x%lx | Target CanBuy: 0x%lx", 
                                baseAddress, (baseAddress + 0xDA4D70)];
        writeLocalLog(addressLog);

        MSHookFunction((void *)(baseAddress + 0xDA4D70), (void *)&new_CanBuy, (void **)&old_CanBuy);
        MSHookFunction((void *)(baseAddress + 0xDA4E44), (void *)&new_RemoveMoney, (void **)&old_RemoveMoney);

        writeLocalLog(@"Wallet bypass successfully! :>");
    }
    return NULL;
}

%ctor {
    pthread_t pt;
    pthread_create(&pt, NULL, hook_worker_thread, NULL);
}

this is my code, this works perfect on playcover, but in iphone, it shows the log i made  "Wallet bypass successfully! :>" but it doesnt even work in-game :<
please tell me what's wrong with it (if there is)

Updated by A1XEN
Posted
38 minutes ago, A1XEN said:

Hi, 

I was busy making tweaks using theos but im facing a problem where my tweaks (.dylibs) works perfectly fine on Playcover but does not when in my iphone, i followed every tutorials, and still no 

please help, i dont known if the iosGod .dylibs have some sort of bypass code that makes it works and i dont have it

@Rook @Laxus @Puddin

i actually tried revising the code, i used the rule:

True iPhone Offset=Disassembler Address−Disassembler Base Address (usually 0x100000000)−Segment Offset (usually 0x4000)

and still nothing 

Posted

Are you using a menu or something?

On Jailbreak there's rootful, rootless, & RootHide now so you need to compile appropriately.

Posted
19 minutes ago, Rook said:

Are you using a menu or something?

On Jailbreak there's rootful, rootless, & RootHide now so you need to compile appropriately.

im not, im on jailed device, im actually going to try to make a menu if i could tomorrow (im going to sleep) because my code might be hooking to early you see what i was tryna do is make the patches from live offset patcher to run automatically without the live offset patcher only using .dylibs so its supposed to apply the patches automatically when the game run

Posted
1 minute ago, A1XEN said:

im not, im on jailed device, im actually going to try to make a menu if i could tomorrow (im going to sleep) because my code might be hooking to early you see what i was tryna do is make the patches from live offset patcher to run automatically without the live offset patcher only using .dylibs so its supposed to apply the patches automatically when the game run

Ah, but patching on jailed we do something unique to achieve that. Though I think Batch released a menu which does something similar.

Posted (edited)
5 minutes ago, A1XEN said:

im not, im on jailed device, im actually going to try to make a menu if i could tomorrow (im going to sleep) because my code might be hooking to early you see what i was tryna do is make the patches from live offset patcher to run automatically without the live offset patcher only using .dylibs so its supposed to apply the patches automatically when the game run

you see when i apply the patches manually using the live offset patcher, it works, only when i turned on the UnityFramework from iGdebugger 

3 minutes ago, Rook said:

Ah, but patching on jailed we do something unique to achieve that. Though I think Batch released a menu which does something similar.

which menu? so you mean every jailed cheats here uses that menu released by “Batch” and who/what is Batch? :?

Updated by A1XEN
Posted
8 minutes ago, A1XEN said:

you see when i apply the patches manually using the live offset patcher, it works, only when i turned on the UnityFramework from iGdebugger 

which menu? so you mean every jailed cheats here uses that menu released by “Batch” and who/what is Batch? :?

i found it but the github link is broken, can you teach the trick you do to apply patches and tweaks for jailed devices, and also if there is a official menu/template for theos that helps apply tweaks/patches on jailed devices thanks 🙏 @Rook

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines