Jump to content

il2cpp IOS Unity games hacking


KillerAE

3 posts in this topic

Recommended Posts

Posted

I am trying to hack an il2cpp game using UnityFramework file with dnspy and ida pro.

I look for methods in dnspy and then get their offsets to try to change them in ida pro.

I have ida connected to my game to reflect changes quickly but nothing that I change in ida is reflected in the game.

I don't really understand anything written in ida or what I have to change.

I have noticed that every method starts with the same sequence of instructions:

spacer.png

Can anyone explain to me what this means? Or just tell me if there is a better way of hacking IOS Unity games. I am lost TBH....

I am lost to the point of not even knowing what to ask lol.

Anyways, Thanks!

Posted
1 hour ago, KillerAE said:

I have ida connected to my game to reflect changes quickly but nothing that I change in ida is reflected in the game.

I am not entirely sure how to do this so I cannot say this method actually works or not. I usually make debs to test my hacks for IDA

1 hour ago, KillerAE said:

I look for methods in dnspy and then get their offsets to try to change them in ida pro.

Alternatively you could just run the script in IDA and use the function window on the left in IDA to search for the functions, it's easier imo.

1 hour ago, KillerAE said:

I don't really understand anything written in ida or what I have to change

You need to find functions that can be understood such as GetCoins would return the amount of coins. So for Get functions you could write code to return  high value for example: MOV X0, #65536 then RET which RET indicates end of function

Similarly, AddCoins, RemoveCoins, SubCoins, etc. You would've have to look for instructions that are ADD, NEG, SUB, ADDS, or sometimes they have their own functions.

For example inside AddCoins function there could be another function named ModifyCoins or double$$op_Addition, etc which in this case most likely you won't find ADD, NEG, SUB, etc instructions.

1 hour ago, KillerAE said:

Can anyone explain to me what this means? Or just tell me if there is a better way of hacking IOS Unity games. I am lost TBH....

You can just use IDA on it's own, I never had to use dnspy, not even sure what extra info it shows compared to IDA

You can watch this:

(36) How To Hack iOS Games Using IDA PRO - Tutorial 1 - YouTube

Posted

Thank you for your help. Would look into that and update you with the results.

33 minutes ago, Zahir said:

I am not entirely sure how to do this so I cannot say this method actually works or not. I usually make debs to test my hacks for IDA

Alternatively you could just run the script in IDA and use the function window on the left in IDA to search for the functions, it's easier imo.

You need to find functions that can be understood such as GetCoins would return the amount of coins. So for Get functions you could write code to return  high value for example: MOV X0, #65536 then RET which RET indicates end of function

Similarly, AddCoins, RemoveCoins, SubCoins, etc. You would've have to look for instructions that are ADD, NEG, SUB, ADDS, or sometimes they have their own functions.

For example inside AddCoins function there could be another function named ModifyCoins or double$$op_Addition, etc which in this case most likely you won't find ADD, NEG, SUB, etc instructions.

You can just use IDA on it's own, I never had to use dnspy, not even sure what extra info it shows compared to IDA

You can watch this:

(36) How To Hack iOS Games Using IDA PRO - Tutorial 1 - YouTube

 

Archived

This topic is now archived and is closed to further replies.

×
  • 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