Jump to content

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


1,569 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 306
  • Winner 37
  • Thanks 41
  • Haha 20
  • Agree 32
  • Informative 36
Posted
  On 2/19/2015 at 1:08 AM, DiDA said:

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
  On 2/19/2015 at 5:33 AM, Laxus said:

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

    • Stand & Fight: Backpack Battle v0.8.4 Debug Menu [+10 Jailed Cheats]
      Modded/Hacked App: Stand & Fight: Backpack Battle By VERARIUM COM SERVICOS LDA ZFM
      Bundle ID: com.V.StandAndFight
      App Store Link: https://apps.apple.com/us/app/stand-fight-backpack-battle/id6740915182?uo=4



      🤩 Hack Features

      - Debug Menu

       
        • Informative
        • Like
      • 4 replies
    • Stand & Fight: Backpack Battle v0.8.4 Debug Menu [+10 Cheats]
      Modded/Hacked App: Stand & Fight: Backpack Battle By VERARIUM COM SERVICOS LDA ZFM
      Bundle ID: com.V.StandAndFight
      App Store Link: https://apps.apple.com/us/app/stand-fight-backpack-battle/id6740915182?uo=4



      🤩 Hack Features

      - Debug Menu
        • Agree
        • Winner
        • Like
      • 5 replies
    • Apocalypse Worm: Zombie Strike v0.2.1 [+2 Jailed Cheats]
      Modded/Hacked App: Apocalypse Worm: Zombie Strike By A Thinking Ape Entertainment Ltd.
      Bundle ID: ata.strike.worm.zombie.apocalypse
      iTunes Store Link: https://apps.apple.com/us/app/apocalypse-worm-zombie-strike/id6740106898?uo=4
       

      🤩 Hack Features

      - Never Die
      - Unlimited Resources (Earn Some)
        • Like
      • 8 replies
    • Apocalypse Worm: Zombie Strike v0.2.1 [+2 Cheats]
      Modded/Hacked App: Apocalypse Worm: Zombie Strike By A Thinking Ape Entertainment Ltd.
      Bundle ID: ata.strike.worm.zombie.apocalypse
      iTunes Store Link: https://apps.apple.com/us/app/apocalypse-worm-zombie-strike/id6740106898?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Resources (Earn Some)
       
      • 4 replies
    • Kingdom of Gods v0.9.1 [+2 Jailed Cheats]
      Modded/Hacked App: Kingdom of Gods By TOP GAMES INC.
      Bundle ID: com.topgamesinc.ep
      App Store Link: https://apps.apple.com/us/app/kingdom-of-gods/id6475946107?uo=4



      🤩 Hack Features

      - Low Hp Enemies (Parkour - Enemies dying auto)
      - Enemy Can't Attack (Parkour)
        • Like
      • 1 reply
    • Kingdom of Gods v0.9.1 [+2 Cheats]
      Modded/Hacked App: Kingdom of Gods By TOP GAMES INC.
      Bundle ID: com.topgamesinc.ep
      App Store Link: https://apps.apple.com/us/app/kingdom-of-gods/id6475946107?uo=4



      🤩 Hack Features

      - Low Hp Enemies (Parkour - Enemies dying auto)
      - Enemy Can't Attack (Parkour)
       
        • Winner
      • 1 reply
    • Picture Cross v6.3 +1 [Infinite Coins]
      Modded/Hacked App: Picture Cross By AppyNation Ltd
      Bundle ID: com.appynation.wbpc
      iTunes Store Link: https://apps.apple.com/us/app/picture-cross/id977150768?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing / or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Infinite Coins<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Free Gameplay


      Non-Jailbroken & No Jailbreak required hack(s): 


        • Haha
        • Thanks
        • Like
      • 12 replies
    • Let’s Survive v1.9.7 +8 [Subscription Bypassed]
      Modded/Hacked App: Let’s Survive - Survival games By TREASTONE LTD
      Bundle ID: lets.survive.apocalypse.survival
      iTunes Store Link: https://apps.apple.com/us/app/lets-survive-survival-games/id1599740417?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Freeze Craft Items<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Free Boost<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Can Craft<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Can Build<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Can Upgrade<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- No Hunger<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- No Thirst


      Jailbreak required hack(s): 


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 110 replies
    • Picture Cross v6.3 +2 [Currency Hack]
      Modded/Hacked App: Picture Cross By AppyNation Ltd
      Bundle ID: com.appynation.wbpc
      iTunes Store Link: https://apps.apple.com/us/app/picture-cross/id977150768?uo=4


      Hack Features:
      - Infinite Coins<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Free Gameplay 


      Jailbreak required hack(s): 


        • Agree
        • Thanks
        • Winner
        • Like
      • 40 replies
    • Weed Inc: Idle Tycoon v3.40.86 +5 [Currency Hack]
      Modded/Hacked App: Weed Inc: Idle Tycoon By Metamoki Inc.
      Bundle ID: com.metamoki.weed
      iTunes Store Link: https://apps.apple.com/us/app/weed-inc-idle-tycoon/id1355866764?uo=4


      Hack Features:
      - Infinite Gems
      - Infinite Cash
      - Infinite Skill points
      - Infinite Tokens
      - Infinite Items


      Non-Jailbroken & No Jailbreak required hack(s): 


      iOS Hack Download Link:

        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 108 replies
    • Let’s Survive v1.9.7 +8 [Subscription Bypassed]
      Modded/Hacked App: Let’s Survive - Survival games By TREASTONE LTD
      Bundle ID: lets.survive.apocalypse.survival
      iTunes Store Link: https://apps.apple.com/us/app/lets-survive-survival-games/id1599740417?uo=4


      Hack Features:
      - Freeze Craft Items


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      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
      • 148 replies
    • Idle Taxi Tycoon v1.20.0 +2 [Currency Hack]
      Modded/Hacked App: Idle Taxi Tycoon: Empire By Kolibri Games GmbH
      Bundle ID: com.fastpoodlegames.idletaxitycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-taxi-tycoon-empire/id1617619084?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing / or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Infinite Currency
      - No Driver/Taxi Cooldown


      Non-Jailbroken & No Jailbreak required hack(s): 


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 30 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