Jump to content

5 posts in this topic

Recommended Posts

Posted

I'm having a problem with gdb. I keep running into Segmentation fault: 11. I have the app running, I cracked and thinned the binary, replaced the old one with the cracked. Not sure what to do anymore, any help is appreciated :D. Oh i'm trying to hack Kendall And Kylie 

b7af99293b134b0dbd1ca5c119cf6dc8.png

Posted (edited)

I'm having a problem with gdb. I keep running into Segmentation fault: 11. I have the app running, I cracked and thinned the binary, replaced the old one with the cracked. Not sure what to do anymore, any help is appreciated :D. Oh i'm trying to hack Kendall And Kylie 

 

i know why but i can't find the post segmentation fault usually mean anti debug trick there is a tutorial on how to remove it but i can't find it sorry 

here it is https://iosgods.com/topic/26721-breaking-securityhow-to-disable-syscall-anti-debugging-protection/

Updated by Taylor Meyer
Posted

i know why but i can't find the post segmentation fault usually mean anti debug trick there is a tutorial on how to remove it but i can't find it sorry 

here it is https://iosgods.com/topic/26721-breaking-securityhow-to-disable-syscall-anti-debugging-protection/

I tried that but mine didn't have the _syscall. I also tried looking for other ones that dida had mention on another post but it only had one string/import thing

Posted

I tried that but mine didn't have the _syscall. I also tried looking for other ones that dida had mention on another post but it only had one string/import thing

Make a project in theos, bundle id is com.apple.UIKit

 

Tweak.xm code:

#import <substrate.h>

#if !defined(PT_DENY_ATTACH)
#define PT_DENY_ATTACH 31
#endif

#if !defined(sys_ptrace_request)
#define sys_ptrace_request 26
#endif

static int (*_ptraceHook)(int request, pid_t pid, caddr_t addr, int data);
static int (*_syscall)(long request, long pid, long addr, long data);

static int $ptraceHook(int request, pid_t pid, caddr_t addr, int data) {
        if (request == PT_DENY_ATTACH) {
                request = -1;
        }
        return _ptraceHook(request,pid,addr,data);
}

static int $syscall(long request, long pid, long addr, long data) {
        if (request == sys_ptrace_request) {
                return 0;
        }
        return _syscall(request,pid,addr,data);
}

%ctor {
        MSHookFunction((void *)MSFindSymbol(NULL,"_ptrace"), (void *)$ptraceHook, (void **)&_ptraceHook);
        MSHookFunction((void *)MSFindSymbol(NULL,"_syscall"),(void *)$syscall,(void **)&_syscall);
}

This code isn't mine. it's sharedRoutine's. I take no credit for it but I hate macros

Posted

Make a project in theos, bundle id is com.apple.UIKit

 

Tweak.xm code:

#import <substrate.h>

#if !defined(PT_DENY_ATTACH)
#define PT_DENY_ATTACH 31
#endif

#if !defined(sys_ptrace_request)
#define sys_ptrace_request 26
#endif

static int (*_ptraceHook)(int request, pid_t pid, caddr_t addr, int data);
static int (*_syscall)(long request, long pid, long addr, long data);

static int $ptraceHook(int request, pid_t pid, caddr_t addr, int data) {
        if (request == PT_DENY_ATTACH) {
                request = -1;
        }
        return _ptraceHook(request,pid,addr,data);
}

static int $syscall(long request, long pid, long addr, long data) {
        if (request == sys_ptrace_request) {
                return 0;
        }
        return _syscall(request,pid,addr,data);
}

%ctor {
        MSHookFunction((void *)MSFindSymbol(NULL,"_ptrace"), (void *)$ptraceHook, (void **)&_ptraceHook);
        MSHookFunction((void *)MSFindSymbol(NULL,"_syscall"),(void *)$syscall,(void **)&_syscall);
}
This code isn't mine. it's sharedRoutine's. I take no credit for it but I hate macros

 

I'll install theos and try this thanks

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