Skip to content
Guest Big Announcement

Featured Replies

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

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

  • Author

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

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

  • Author

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.