Skip to content
Guest Big Announcement

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

Featured Replies

  • Replies 35
  • Views 6.2k
  • 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

  • Author

Don't know really. :MeGusta:

 

Might be the games problem since other hacks work with it. :3

Ight thanks, I'll try it with a different function, like Zombie::getMaxHealth() whenever I get out of school. Thanks :)
  • Author

Hmmm... idk, cause  what i did using hex editor, i set all the mobs health to #0x1 so they can be killed with only one hit, and it did worked, so i think im doing something wrong on tweak.xm, maybe the return type, idk.

Updated by CosnotraLF

Hmmm... idk, cause  what i did using hex editor, i set all the mobs health to #0x1 so they can be killed with only one hit, and it did worked, so i think im doing something wrong on tweak.xm, maybe the return type, idk.

You can also convert the other hack you made to MS using this tutorial: http://iosgods.com/topic/659-tut-code-injection-with-patcher/

 

The above tutorial is for making a Code Injection patcher btw.

  • Author

You can also convert the other hack you made to MS using this tutorial: http://iosgods.com/topic/659-tut-code-injection-with-patcher/

 

The above tutorial is for making a Code Injection patcher btw.

hehe.. i dont get how to do this on my phone, he is doing it on a computer :(

sorry, this thread is taking so long. 

here is the code i have inside Tweak.xm:

#import <Foundation/Foundation.h>
#import <writeData.h>
BOOL pighealth;

%ctor{
pighealth = [[[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/prefbundle.plist"] valueForKey:@"kspeed"] boolValue];
if(pighealth)
{
writeData(0x004DB238, 0x01207047);
}
else
{
writeData(0x004DB238, 0x0A207047);
}
}

hehe.. i dont get how to do this on my phone, he is doing it on a computer :(

sorry, this thread is taking so long. 

Same thing. Just download the project files and copy his tweak.xm content into yours but just edit the address and offset with the one you have. :)

This might be of use to you also: http://iosgods.com/topic/1907-template-custom-nic-patcher-template/

  • Author

PROBLEMMO FIXED!!

DiDA, Can i make a tut on how to fix this?

not really hard, only one step, but i want to make a tut so they can look it on google.

That's ok if you say no. :)

 

EDIT: nahh, i'll just post the thing i was doing wrong tomarrow. gtg 

Updated by CosnotraLF

PROBLEMMO FIXED!!

DiDA, Can i make a tut on how to fix this?

not really hard, only one step, but i want to make a tut so they can look it on google.

That's ok if you say no. :)

 

EDIT: nahh, i'll just post the thing i was doing wrong tomarrow. gtg 

Sure! Go ahead! Of course I'm not going to say no. This forum is about helping & teaching others. :)

  • Author

no, i think is not necessary because in his tutorial, is just that i dint want to do it cause i tought he made a mistake, 

but no, he was right.

vy4321.jpg

i was writting data to the left-side address insted of the right-side address  :wallbash:

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.