Jump to content

[IDA Tutorial] How to know what to change in IDA in order to make your hack work


1,574 posts in this topic

Recommended Posts

Updated (edited)

I could not think of a better title :p

Since I will not be able to make hacks for awhile (I tried with my iPod, it was just way too laggy, theos wouln't install), I'm mostly going to be helping around the forum and making IDA tutorials. DiDA please don't put me in retired :p

This tutorial is sort of noob-friendly, but not really in most ways. You should already have your offset that you got from GDB or LLDB. I am going to go right to the point. It will not be covering the basics. Alright, let's begin :D

Hidden Content

    This is the example I will be using for this tutorial.
    X3IC6Ke.jpg

    Everything in between

    0x101968

    and

    0x101980

    is what we will be working with, everything else does not matter. Why? Because when hacking sub_x, you hardly ever pay attension or modify instructions with SP (stack pointer) in it. You are usually always hacking MOV's, STR's, LDR's, ADD's, SUB's, and sometimes CMP's and branches (BEQ, BL, etc.) In this case, R0 holds the value of our coins. But what is this function saying? This is the first step of figuring out how to make your sub_x hack work. This function (between

    0x101968

    and

    0x101980

    , of course) is saying to:
     

    0x101968: Move the value of R0 into R6
    0x10196C: Store the value of R1 into R11+var_s0
    0x101970: Load R6+0x24 into R0
    0x101974: Load R11+var_s0 into R1
    0x101978: Add R0 and R1 together and store the value in R0 
    0x10197C: Store the value of R0 in R6+0x24
    0x101980: Move the value of R6 into R0
    

    Now we have figured out what the function is saying in English. I'm sure that you know that R7 holds the value of 668 - 803 million (I'm pretty sure, I know that it is a huge number). To make our coins infinite, we only need to modify instructions with R0 in there because, again, R0 holds the value of our coins. To make it infinite, all we have to do is change the STR (store) because we first want to store R7, or 803 million in R6+0x24 and the LDR (load) instruction because we know want to make it load R7, or 803 million into R0 instead of the regular value of coins. Those two instructions now have dashes and slashes because I don't think you can bold text that already has the code tag.

    Here is the function in plain English with the dashes:
     

    0x101968: Move the value of R0 into R6
    0x10196C: Store the value of R1 into R11+var_s0
    0x101970: Load R6+0x24 into R0 ---/---/---/---/---/--- 
    0x101974: Load R11+var_s0 into R1
    0x101978: Add R0 and R1 together and store the value in R0
    0x10197C: Store the value of R0 in R6+0x24 ---/---/---/---/---/---
    0x101980: Move the value of R6 into R0
    

    And here is the same function, but instead it is in assembly instructions with what we can change to what to make coins infinite:
     

    0x101968: MOV R0, R6
    0x10196C: STR R1, [R11, #var_s0] 
    0x101970: LDR R0, [R6, #0x24] //we can change this to LDR R0, [R7] so it loads 803 million into R0 instead of the regular amount of coins.
    0x101974: LDR R1, [R11, #var_s0]
    0x101978: ADD R0, R0, R1
    0x10197C: STR R0, [R6, #0x24] //we can change this to STR R7, [R6, #0x24] so it stores 803 million into R6+0x24 instead of our regular coins value.
    0x101980: MOV R6, R0
    

    And here is the final changed function to make coins infinite (changes marked with dashes):
     

    0x101968: MOV R0, R6
    0x10196C: STR R1, [R11, #var_s0] 
    0x101970: LDR R0, [R7] ------------------------
    0x101974: LDR R1, [R11, #var_s0]
    0x101978: ADD R0, R0, R1
    0x10197C: STR R7, [R6, #0x24] ----------------------
    0x101980: MOV R6, R0
    

    Now coins are infinite! :D I hope you understood this, and I hope you learned something new :)



I hope this tutorial helped you :) Don't be afraid to ask me questions! :)

 

Thanks @RickHaks for catching a mistake I made

Updated by Guest
Posted

Awesome man! :)

 

We need more tutorials like this. ^_^

 

:goodjob:

  • Like 307
  • Winner 37
  • Thanks 41
  • Haha 20
  • Agree 32
  • Informative 36
Posted

Awesome man! :)

 

We need more tutorials like this. ^_^

 

:goodjob:

Thanks, I'll be making more tutorials like this now that I can't really hack :p

Posted

This is totally wrong ...

 

0x101968: MOV R0, R6

0x10196C: STR R1, [R11, #var_s0]

0x101970: LDR R0, [R7] ------------------------ WRONG !!!

  • Like 1
Posted

This is totally wrong ...

0x101968: MOV R0, R6

0x10196C: STR R1, [R11, #var_s0]

0x101970: LDR R0, [R7] ------------------------ WRONG !!!

it worked with this test function, its right, i compiled a mod just to test it and it worked

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
  • Our picks

    • Dark War:Survival v1.250.597 [+2 Jailed Cheats]
      Modded/Hacked App: Dark War:Survival By Florere Game Limited
      Bundle ID: com.readygo.dark.nbios
      App Store Link: https://apps.apple.com/us/app/dark-war-survival/id6670441558?uo=4



      🤩 Hack Features

      - Never Die (Stages)
      - No Skill CoolDown (Stages)
        • Winner
      • 0 replies
    • Dark War:Survival v1.250.597 [+2 Cheats]
      Modded/Hacked App: Dark War:Survival By Florere Game Limited
      Bundle ID: com.readygo.dark.nbios
      App Store Link: https://apps.apple.com/us/app/dark-war-survival/id6670441558?uo=4



      🤩 Hack Features

      - Never Die (Stages)
      - No Skill CoolDown (Stages)
       
        • Winner
      • 1 reply
    • King of Crabs - Invasion v1.0.3 +3 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: King of Crabs - Invasion By Robot Squid Limited
      Bundle ID: com.robotsquid.kingofcrabs.invasion
      App Store Link: https://apps.apple.com/us/app/king-of-crabs-invasion/id6476405143?uo=4

       


      🤩 Hack Features

      - Unlimited Everything -> Earn some.
      - Free In-App Purchases

      VIP
      - Auto Win -> Enable pre-game then disable in-game to trigger.
        • Agree
        • Winner
        • Like
      • 10 replies
    • King of Crabs - Invasion v1.0.3 +3 Cheats [ Unlimited Everything ]
      Modded/Hacked App: King of Crabs - Invasion By Robot Squid Limited
      Bundle ID: com.robotsquid.kingofcrabs.invasion
      App Store Link: https://apps.apple.com/us/app/king-of-crabs-invasion/id6476405143?uo=4

       
       

      🤩 Hack Features

      - Unlimited Everything -> Earn some.
      - Free In-App Purchases

      VIP
      - Auto Win -> Enable pre-game then disable in-game to trigger.
        • Winner
        • Like
      • 5 replies
    • Family Life! v1.50.3 +3++ Jailed Cheats [ Cheat Menu ]
      Modded/Hacked App: Family Life! By SUPERSONIC STUDIOS LTD
      Bundle ID: com.xia.familylife
      iTunes Store Link: https://apps.apple.com/us/app/family-life/id6449919224?uo=4


      Hack Features:
      - Cheat Menu -> Head over to Settings and toggle the Privacy button.
      -- Life Pass Purchased
      -- No Ads


      Jailbreak required hack(s): [Mod Menu Hack] Family Life! v1.0.32 +2++ Cheats [ Cheat Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 277 replies
    • Episode: Reality Stars v1.20 +2++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Episode: Reality Stars By Episode Interactive, LLC
      Bundle ID: com.sodeepilabs.glamsquad
      App Store Link: https://apps.apple.com/ph/app/episode-reality-stars/id1604253094?uo=4


      Hack Features:
      - Unlimited Currencies -> Head into Settings and toggle the License button. Press on Hero to add 99K currencies.
      - Time Cheat Menu -> Head into Settings and toggle the Terms of Service button. Toggle to your liking.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 86 replies
    • Episode: Reality Stars v1.20 +2++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Episode: Reality Stars By Episode Interactive, LLC
      Bundle ID: com.sodeepilabs.glamsquad
      App Store Link: https://apps.apple.com/ph/app/episode-reality-stars/id1604253094?uo=4


      Hack Features:
      - Unlimited Currencies -> Head into Settings and toggle the License button. Press on Hero to add 99K currencies.
      - Time Cheat Menu -> Head into Settings and toggle the Terms of Service button. Toggle to your liking.
        • Informative
        • Agree
        • Winner
        • Like
      • 32 replies
    • Family Life! v1.50.3 +3++ Cheats [ Cheat Menu ]
      Modded/Hacked App: Family Life! By SUPERSONIC STUDIOS LTD
      Bundle ID: com.xia.familylife
      iTunes Store Link: https://apps.apple.com/us/app/family-life/id6449919224?uo=4


      Hack Features:
      - Cheat Menu -> Head over to Settings and toggle the Privacy button.
      -- Life Pass Purchased
      -- No Ads


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Family Life! v1.0.32 +2++ Jailed Cheats [ Cheat Menu ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 112 replies
    • Mystery Matters v2.9.5 +6 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mystery Matters By Playrix
      Bundle ID: com.playrix.mystery-matters
      iTunes Store Link: https://apps.apple.com/us/app/mystery-matters/id6450447751
       

      Hack Features:
      - Freeze Coins
      - Freeze Stars
      - Freeze Lives
      - Freeze Moves

      VIP
      Note - These features will get you banned from teams/clans.
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Stars -> Earn some.
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 50 replies
    • Mystery Matters v2.9.5 +6 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mystery Matters By Playrix
      Bundle ID: com.playrix.mystery-matters
      iTunes Store Link: https://apps.apple.com/us/app/mystery-matters/id6450447751
       

      Hack Features:
      - Freeze Coins
      - Freeze Stars
      - Freeze Lives
      - Freeze Moves

      VIP
      Note - These features will get you banned from teams/clans.
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Stars -> Earn some.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 47 replies
    • Grimguard Tactics: Fantasy RPG v1.12.0 +3 Jailed Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Jailbreak required hack(s): [Mod Menu Hack] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Cheats [ Auto Win ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Like
      • 111 replies
    • Grimguard Tactics: Fantasy RPG v1.12.0 +3 Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Jailed Cheats [ Auto Win ] - ViP Non-Jailbroken Hacks & Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Thanks
        • Winner
        • Like
      • 90 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