yalu102 icon indicating copy to clipboard operation
yalu102 copied to clipboard

Apple Mach-O Linker Error

Open bob-2017 opened this issue 8 years ago • 27 comments

I read the issue posting guidelines.

Hello people, after fixing issues with IOKit (I had to change stuff like #import <IOKit/IOKitlib.h> to #import "IOKit/IOKitlib.h") I am now encountering 27 errors called Mach-O linker error, i.e ""_whole_dump" referenced from: Jailbreak.o in _exploit"

Now, i have already gone through all the issues with Mach-O in them, and have had no luck. I have changed the architechture to arm64 and all the other things mentioned with no luck at all.

bob-2017 avatar Apr 26 '17 01:04 bob-2017

@bob-2017 just use the precompiled ipas

P0siti0n45 avatar Apr 26 '17 09:04 P0siti0n45

@P0siti0n45 I am trying to modify and tweak the jailbreak so the precompiled IPA isn't going to be of much use

bob-2017 avatar Apr 26 '17 10:04 bob-2017

@bob-2017 What exactly are you trying to do?

P0siti0n45 avatar Apr 26 '17 12:04 P0siti0n45

Attempting (Take note of the operative word "attempting") to make it fully untethered.

bob-2017 avatar Apr 26 '17 21:04 bob-2017

Will you release it if you make it untethered?

endercypher avatar Apr 27 '17 22:04 endercypher

Yes but that is only if

bob-2017 avatar Apr 27 '17 23:04 bob-2017

And I should also mention that I did have trouble when importing IOKit I had trouble so I just dragged the folder (Not a .framework) into the frameworks folder of xcode

bob-2017 avatar Apr 27 '17 23:04 bob-2017

If it helps anyone, here is my copy of it:

Yalu102.zip

bob-2017 avatar Apr 28 '17 10:04 bob-2017

I'll send you mine, you will need to change paths probably but it compiles

uspasojevic96 avatar May 01 '17 15:05 uspasojevic96

Anything new @bob-2017 @uspasojevic96 let me know as soon as possible also @uspasojevic96 is yours a untethered as then fully untethered version of Yalu102?

endercypher avatar May 07 '17 06:05 endercypher

Untethering doesn't work like that. You make a Cydia package that pre-patches the kernel and runs the exploit on each boot

jakeajames avatar May 07 '17 15:05 jakeajames

Hello @uspasojevic96 , sorry for the late response, i got a bit caught up in life. If you could send me your copy that would be GREAT. Thanks

bob-2017 avatar May 11 '17 11:05 bob-2017

Hey so @bob-2017 do you have something like a bootrom exploit to patch the Kernel upon boot?

endercypher avatar May 21 '17 06:05 endercypher

Also @uspaojevic96 would you please send us your copy of Yalu102 and the source code and compiled IPA and is it a fully untethered? Even if it's not I'd still like to have it to look at please and use thanks!

endercypher avatar May 21 '17 06:05 endercypher

Sure mate, i was busy with college, i will when i get home

uspasojevic96 avatar May 21 '17 08:05 uspasojevic96

@uspasojevic96 is your source code and your Yalu version Untethered?

endercypher avatar May 21 '17 09:05 endercypher

No, there us no way to nuke kernel in that way atm

uspasojevic96 avatar May 21 '17 11:05 uspasojevic96

@bob-2017 @uspasojevic96 @king4q No one here has an idea of what they're talking about. You, the bob guy, if you can't add headers to a project you clearly don't even know what an untether is. And just so you know you don't have to modify (or "tweak") the application for an untether. You clearly have no idea of what your talking about

jakeajames avatar May 21 '17 14:05 jakeajames

I know what am i talking about, there needs to be exploit that can be ran during boot, meaning that there needs to be some sort of injection into kernel when its jailbroken, but that is impossible due to Apple having enhanced protection for kernelspace, the way this exploit works is by manipulating hanging pointer bug until you have enough hanging pointers from IPC, the offsets are needed so it can be decided where they start

uspasojevic96 avatar May 21 '17 15:05 uspasojevic96

@uspasojevic96 not talking about you, but about the bob guy

jakeajames avatar May 21 '17 16:05 jakeajames

@jakeajames When I make stuff in c++ and i import the headers, IT IMPORTS. When I do the same in python with librarys, IT IMPORTS. When I do it in swift with frameworks, IT IMPORTS. Now, with objective-C, I am not saying that I am amazing at it but I have got a decent knowledge and I can learn fast. If I made a mistake, THEN SO BE IT. I am a human, and humans make mistakes. And I do know what an untether is, it is when a jailbroken device can power off and on at will without losing the jailbreak. This bit here:

struct load_command* lc = vmk+1;
    for (int k=0; k < vmk->ncmds; k++) {
        
        if (lc->cmd == LC_SEGMENT_64) {
            struct segment_command_64* sg = lc;
            NSLog(@"seg: %s", sg->segname);
            if (sg->vmaddr < min) {
                min = sg->vmaddr;
            }
            if (sg->vmaddr + sg->vmsize > max) {
                max = sg->vmaddr+sg->vmsize;
            }
        }
        
        lc = ((char*)lc) + lc->cmdsize;
    }
    
    NSLog(@"%llx - %llx", min, max);
    
    char* kdump = malloc(max-min);

Is the bit that creates the pointers, isn't it? The malloc(max-min) at the end allocates the pointers between the maximum and minimum memory addresses (i.e. between 0x00000 and 0x0F67A). So don't say that I don't know what I am talking about because I do have a decent knowledge about it

bob-2017 avatar Jun 03 '17 08:06 bob-2017

@bob-2017 keep up the good work hope you do this and make it more stable for Air 2 users and iPad mini 4 users

KILLCAMPER avatar Jun 04 '17 09:06 KILLCAMPER

@KILLCAMPER thanks for the support :D 👍 😄

bob-2017 avatar Jun 05 '17 08:06 bob-2017

Also @uspasojevic96 , can you please send me your copy ASAP. thanks :D 😃

bob-2017 avatar Jun 05 '17 10:06 bob-2017

Any way I can get a copy of that copy, I'm getting the linker error too @bob-2017 @uspasojevic96

Sam1370 avatar Oct 16 '17 03:10 Sam1370

@uspasojevic96 please share your copy of it.

bob-2017 avatar Dec 12 '17 08:12 bob-2017

Oh and also seeing that Ian beer made that exploit, everything should be much easier

bob-2017 avatar Dec 12 '17 08:12 bob-2017