Jump to content

 Something great is coming! 🤖

Stay tuned for the big reveal happening here on iOSGods on the 20th of February!

The countdown has finished!

Help ! x64-bit code injection


Go to solution Solved by Rook,

13 posts in this topic

Recommended Posts

Posted

We know that 32 of the code injection, 

 

 

if(GetPrefBool(@"infattack"))

{
writeData(IDA offset, HEX offset);
} else {
 
}

 

 

and Its length is eight characters, like 0x12345678

 
However, in 64 of the IDA offset is 9, as 0x123456789,
I try to write directly to the  IDA offset ,just like
 
 

 

if(GetPrefBool(@"infattack"))

{
writeData(0x123456789, 0xHEX);
} else {
 
}

 

 

Problem is ,Compile errors

 

Preprocessing Tweak.xm...

 Compiling Tweak.xm (armv7)...

Tweak.xm:15:11: error: implicit conversion from 'long long' to 'vm_address_t'

      (aka 'unsigned int') changes value from 4886718345 to 591751049

      [-Werror,-Wconstant-conversion]

writeData(0x123456789, 0xC0035FD6);

~~~~~~~~~ ^~~~~~~~~~~

1 error generated.

 

 

So,How can I fix it?

  • Solution
Posted

You need to modify writeData to support x64 bit offsets.

Posted

We know that 32 of the code injection, 

 

 

 

and Its length is eight characters, like 0x12345678

 
However, in 64 of the IDA offset is 9, as 0x123456789,
I try to write directly to the  IDA offset ,just like
 
 

 

 

Problem is ,Compile errors

 

 

So,How can I fix it?

Here: https://www.dropbox.com/s/4wje39wuc17l5oi/writeData.h?dl=0

 

Happy Hacking ^_^

Posted (edited)

I edited a line of code to allow to support a cast from unsigned int to long long

I tried your WriteData
Still an error
 
Have you tried yet?
Updated by Curtain
Posted

Btw 32 is 6 characters

sometimes only 5 characters 

 

What's the difference?

 

That looks like it won't support x64 offsets.

did you know how to modify WriteData  :D

Posted

sometimes only 5 characters 

 

 

did you know how to modify WriteData  :D

I have writeData which supports arm64 offsets and I tried to make it support 8 byte instructions also but it crashed :p

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