Jump to content

Fishhook Unity global-meta methods


lockdownderp

8 posts in this topic

Recommended Posts

Posted

Is it possible to fishhook the methods that are found in global-meta?

Ive tried using the symbols like Var$$GetGems for example but it doesn't work.

 

#include <substrate.h>
#import <fishhook.h>

static int (*orig_gems)();

int my_gems() {
        return 9999;
}

%ctor {
	rebind_symbols((struct rebinding[1]){{"Var$$GetGems", (void *)my_gems, (void **)&orig_gems}},1);
}

 

Posted
11 hours ago, lockdownderp said:

@Ted2 Or @DanYal you know?

What is a fishhook?

Also, note that "Var$$GetGems" is NOT a symbol, this is il2cppdumper's way of outputting it, which means you can't hook by that!

Originally it's sub_x, so there are no symbols which means you gotta hook by it's offset. 

Posted
On 3/14/2020 at 5:48 AM, Ted2 said:

What is a fishhook?

Also, note that "Var$$GetGems" is NOT a symbol, this is il2cppdumper's way of outputting it, which means you can't hook by that!

Originally it's sub_x, so there are no symbols which means you gotta hook by it's offset. 

Fishhook is the theos-jailed version of mshookfunction. 
 

Ok so its not possible to do then as you cant hook sub_x on theos-jailed :(

Posted
3 hours ago, lockdownderp said:

@Zahir i saw @Ted2 mentioned you in one of his other posts about sub_x and theos-jailed.

Is it possible to hack sub_x on theos-jailed? If so can you please share how so i can release some hacks :) 

You can, by directly patching the binary.

Posted
On 3/15/2020 at 9:50 PM, Ted2 said:

You can, by directly patching the binary.

Yea but you cant write a whole new function and run that :( 

Unless im missing something?

Posted
12 hours ago, lockdownderp said:

Yea but you cant write a whole new function and run that :( 

Unless im missing something?

That’s correct. Gotta be jailbroken then

Archived

This topic is now archived and is closed to further replies.

×
  • 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