Skip to content
Guest Big Announcement

How can i call & modify a fat binary file functions from a tweak?

Featured Replies

i was wondering, how can make a tweak that calls  and modify functions from an app, like for example in minecraftpe binary file,  there is a function called "Pig::getMaxHealth(void)", it returns "0xA" , i know how to mod it using hex editor, but how can you make a tweak that modifies this function return?

 

extra info :

 

* Here is an image of the function that i want to modify:

r10uaw.jpg

* Im using IDA to disassemble minecraftpe binary file.

* minecraftpe version: 0.9.5

  • Replies 35
  • Views 6.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Actually, binary and tweak are different. Binary can only be modify using IDA. Tweak, can be add using 'code' which you will find it from FLEX. I don't know if you can modify it from a tweak, but

  • #import <CoreFoundation/CoreFoundation.h> #import <substrate.h> #import <Foundation/Foundation.h>   int (*old__ZN3Pig12getMaxHealthEv) ();   int $__ZN3Pig12getMaxHealthEv()

  • hehe yep, that is true. Does anyone know how to pass parameters to a function, this is the function i want to pass arguments to "Entity::setPos(Entity *__hidden this, float, float, float)". can anyo

Actually, binary and tweak are different. :D

Binary can only be modify using IDA.

Tweak, can be add using 'code' which you will find it from FLEX.

I don't know if you can modify it from a tweak, but I'm pretty sure it can't :)

  • Author

Ok I'll show u :)

YAYYAYAY!!! ufff , i was so disappointed, i tought you couldn't.   :)

 

Actually, binary and tweak are different.  :D

Binary can only be modify using IDA.

Tweak, can be add using 'code' which you will find it from FLEX.

I don't know if you can modify it from a tweak, but I'm pretty sure it can't  :)

Thanks for tha info thou   :) .

Updated by CosnotraLF

#import <CoreFoundation/CoreFoundation.h>

#import <substrate.h>

#import <Foundation/Foundation.h>

 

int (*old__ZN3Pig12getMaxHealthEv) ();

 

int $__ZN3Pig12getMaxHealthEv()

{

return 99999; //Any Number

}

 

MSInitialize {

MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN3Pig12getMaxHealthEv")),(int*)$__ZN3Pig12getMaxHealthEv,(int**)&old__ZN3Pig12getMaxHealthEv);

}

  • Author


#import <CoreFoundation/CoreFoundation.h>

#import <substrate.h>

#import <Foundation/Foundation.h>

 

int (*old__ZN3Pig12getMaxHealthEv) ();

 

int $__ZN3Pig12getMaxHealthEv()

{

return 99999; //Any Number

}

 

MSInitialize {

MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN3Pig12getMaxHealthEv")),(int*)$__ZN3Pig12getMaxHealthEv,(int**)&old__ZN3Pig12getMaxHealthEv);

}

I don't know what to say.

THANK YOU,  ill try it out!!

I'M SO EXCITED!!   :)

 

Updated by CosnotraLF

  • Author

It didn't work :(, but your speed mod did. I don't get the code thou so idk if is correct or not. Whenever a Pig spawns, the game clashes and closes. Any fix for this?

Updated by CosnotraLF

It didn't work :(, but your speed mod did. I don't get the code thou so idk if is correct or not. Whenever a Pig spawns, the game clashes and closes. Any fix for this?

I don't know :(

  • Author

Try setting another number instead of 99999..

I tried a bunch of numbers smaller than that value, even the original health value which is 10, and it still crashes.

Updated by CosnotraLF

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.