Skip to content
Guest Big Announcement

Fishhook Unity global-meta methods

Featured Replies

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);
}

 

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. 

  • Author
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 :(

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.

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.

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.