Jump to content

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


1,582 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 42
  • Haha 20
  • Agree 33
  • 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

    • Classroom of the Elite v1.0.1 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Classroom of the Elite By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.classroomoftheelite
      App Store Link: https://apps.apple.com/us/app/classroom-of-the-elite/id6670073323?uo=4

       
       

      🤩 Hack Features

      - Freeze Energy
      - Freeze Gems
      - Auto Win
      -- Full Game Unlocked

      VIP
      - Unlimited Coins -> Earn some.
      - Unlimited Gems -> Spend some.
      - Unlimited Energy - Earn some.
      - Unlimited XP -> Earn some.
      • 0 replies
    • Classroom of the Elite v1.0.1 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Classroom of the Elite By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.classroomoftheelite
      App Store Link: https://apps.apple.com/us/app/classroom-of-the-elite/id6670073323?uo=4

       


      🤩 Hack Features

      - Freeze Energy
      - Freeze Gems
      - Auto Win
      -- Full Game Unlocked

      VIP
      - Unlimited Coins -> Earn some.
      - Unlimited Gems -> Spend some.
      - Unlimited Energy - Earn some.
      - Unlimited XP -> Earn some.
      • 0 replies
    • Zombie Infinity v1.8.1 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Zombie Infinity By kamasu.jp Inc.
      Bundle ID: jp.kamasu.oread
      App Store Link: https://apps.apple.com/ph/app/zombie-infinity/id6736433765?uo=4


      🤩 Hack Features

      - ADS Pass

      - Energy Pass

      - Premium Pass

      - Currency

      - Hero Status [ HP - DMG ]
      • 0 replies
    • Zombie Infinity v1.8.1 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Zombie Infinity By kamasu.jp Inc.
      Bundle ID: jp.kamasu.oread
      App Store Link: https://apps.apple.com/ph/app/zombie-infinity/id6736433765?uo=4


      🤩 Hack Features

      - ADS Pass

      - Energy Pass

      - Premium Pass

      - Currency

      - Hero Status [ HP - DMG ]
      • 0 replies
    • GrandChase Cheats v1.91.2 +4 [ Multiply Attack & More ]
      Modded/Hacked App: GrandChase By KOG co., Ltd
      Bundle ID: com.kog.grandchaseglobal
      iTunes Store Link: https://itunes.apple.com/us/app/grandchase/id1385904294?mt=8&uo=4&at=1010lce4

      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate or Substitute.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - x Player Damage - x1 - 100
      - x Player HP - x1 - 100
      - Auto-Win
      - Unlimited Skills

      All features are unlinked and only for player, you!

      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app. This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
        • Agree
        • Thanks
        • Winner
        • Like
      • 1,466 replies
    • Earn to Die Rogue v1.14.178 +15 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Earn to Die Rogue By Not Doppler Pty Limited
      Bundle ID: com.notdoppler.earntodierogue
      iTunes Store Link: https://apps.apple.com/us/app/earn-to-die-rogue/id1564024870?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Gold
      - Unlimited Skill Tree Tokens


      Jailbreak required hack(s): [Mod Menu Hack] Earn to Die Rogue v1.00.96 +2 Cheats [ Unlimited Currencies ] - 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/
        • Like
      • 266 replies
    • Earn to Die Rogue v1.14.178 +15 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Earn to Die Rogue By Not Doppler Pty Limited
      Bundle ID: com.notdoppler.earntodierogue
      iTunes Store Link: https://apps.apple.com/us/app/earn-to-die-rogue/id1564024870?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Gold
      - Unlimited Skill Tree Tokens


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Earn to Die Rogue v1.00.96 +2 Jailed Cheats [ Unlimited Currencies ] - 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/
        • Like
      • 155 replies
    • Virtual Villagers 6 v1.9.7 +100 Jailed Cheats [ Cheats Menu ]
      Modded/Hacked App: Virtual Villagers 6 By LDW Software, LLC
      Bundle ID: com.ldw.vv6
      iTunes Store Link: https://apps.apple.com/us/app/virtual-villagers-6/id6566193928?uo=4

       
       

      Hack Features

      - Cheats Menu -> Head into Settings, toggle the Help button, close settings then re-open to show a Cheats button.*
      - Unlimited Food*
      - Unlimited Wood*
      - Unlimited Stone*
      - Unlimited Tech Points*
      - Unlimited Lavastone*

      * - Head into Settings and toggle the Help button. Only enable 1 feature at a time.


      Jailbreak required iOS hacks: [Mod Menu Hack] Virtual Villagers 6 v1.3.23 +100 Cheats [ Cheats Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Like
      • 8 replies
    • Virtual Villagers 6 v1.9.7 +100 Cheats [ Cheats Menu ]
      Modded/Hacked App: Virtual Villagers 6 By LDW Software, LLC
      Bundle ID: com.ldw.vv6
      iTunes Store Link: https://apps.apple.com/us/app/virtual-villagers-6/id6566193928?uo=4

       


      Hack Features

      - Cheats Menu -> Head into Settings, toggle the Help button, close settings then re-open to show a Cheats button.*
      - Unlimited Food*
      - Unlimited Wood*
      - Unlimited Stone*
      - Unlimited Tech Points*
      - Unlimited Lavastone*

      * - Head into Settings and toggle the Help button. Only enable 1 feature at a time.


      For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] Virtual Villagers 6 v1.3.23 +100 Jailed Cheats [ Cheats Menu ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 5 replies
    • Hellsquad Rrrush! v1.0.1 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Hellsquad Rrrush! By Wemade Max Co., Ltd.
      Bundle ID: com.wemademax.projectsc
      App Store Link: https://apps.apple.com/us/app/hellsquad-rrrush/id6737409896?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 4 replies
    • Hellsquad Rrrush! v1.0.1 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Hellsquad Rrrush! By Wemade Max Co., Ltd.
      Bundle ID: com.wemademax.projectsc
      App Store Link: https://apps.apple.com/us/app/hellsquad-rrrush/id6737409896?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 5 replies
    • [ DBL ]ドラゴンボール レジェンズ v6.4.0 - [ Instant - Win & More ]
      Modded/Hacked App: ドラゴンボール レジェンズ By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcoent.BNEI0333
      iTunes Store Link: https://itunes.apple.com/jp/app/ドラゴンボール-レジェンズ/id1358232022


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - x Player Damage - x1 - 20 
      - x Player Defense - x1 - 20 
      - One Hit Kill
      - God Mode 
      - 1 Enemy Per Quest
      - Instant - Win - Enable It When You In Battle
      - No Swap CoolDown
      - No Vanish CoolDown
      - No KI Cost
      - Auto Complete All Challenges-> Currency/Chrono Crystals Hack!
      - Always Critical
      - Tutorial Bypass
      - All Cards Give DragonBalls

      All functions are unlinked and only for player, you!
        • Agree
        • Thanks
        • Like
      • 1,646 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