Jump to content

help with writeData please


Go to solution Solved by MrDemoManHax,

6 posts in this topic

Recommended Posts

Posted

im trying to write this into writeData;

 

HEX-offset , IDA-offset / Old Function ---> New Function = thumb-hex  /  arm-hex  /  arm-gdb/lldb

 

//More Ammo
loc_3094CA;
3054CA , 3094CA & 3094CC / MOV R0, R4 & POP {R4,R7,PC} --->  MOVW R0, #65535 = 4FF6FF70 / FF0F0FE3 / E30F0FFF
3054CE , 3094CE / ALIGN 0x10 ---> POP {R4,R7,PC}  =  90BD / 9080BDE8 / E8BD8090

 

%ctor {
if(GetPrefBool(@"key1")) {
writeData(0x3094CA, 0xFF0F0FE3);
writeData(0x3094CE, 0x90BD);
} else {
}

iv tryed this in afew diffrent ways but cant get it to work. when i hex edit the binary it works fine. i just write over 2 offsets but when i try to add to tweak.xm. it dont work.

i think its because 3094CA is only 2 bytes and i need to write 4btye. i duno how else to explain what i mean hope someone can help.

 

Posted

i did put 90BD in the binary otherwise the hack wouldnt work mate


3094CA is only 2 bytes and the next offset is 2bytes so i need to over write 2 offset to make the 4 bytes but i duno how this is writen iv tryed everything

Posted

i did put 90BD in the binary otherwise the hack wouldnt work mate

3094CA is only 2 bytes and the next offset is 2bytes so i need to over write 2 offset to make the 4 bytes but i duno how this is writen iv tryed everything

Try this:

 

Once you put 90BD in the Tweak.xm, also put the original 2 bytes that come next after 90BD in the binary.

Posted

i did put 90BD in the binary otherwise the hack wouldnt work mate

3094CA is only 2 bytes and the next offset is 2bytes so i need to over write 2 offset to make the 4 bytes but i duno how this is writen iv tryed everything

Is this fixed?

  • Solution
Posted

yes bud xD  i was usings the wrong hex codes lol was using arm-hex instead of thumb-hex everythings fine now xD i swear i used arm-hex for my other hacks lol. oh well got it sorted now. cheers for trying to help mate.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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