Jump to content

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


1,528 posts in this topic

Recommended Posts

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Conquest Girls : AFK Idle RPG Cheats v2.11.55 +4
      Modded/Hacked App: Conquest Girls : AFK Idle RPG By Toast.Co.,Ltd
      Bundle ID: com.greenspring.conquestgirls
      iTunes Store Link: https://apps.apple.com/us/app/conquest-girls-afk-idle-rpg/id6670455686?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Attack Speed
      - Multiply Attack Range
      - Freeze Currencies (Some arena / section may not support this)

       


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/189660-conquest-girls-afk-idle-rpg-v21153-jailed-cheats-4/
       


      iOS Hack Download Link: https://iosgods.com/topic/186829-conquest-girls-afk-idle-rpg-cheats-v21153-4/
        • Haha
        • Thanks
        • Like
      • 17 replies
    • Monster Legends: Collect all Cheats v17.7.4 +8
      Modded/Hacked App: Monster Legends: Breeding RPG By Socialpoint
      Bundle ID: es.socialpoint.MonsterCity
      iTunes Store Link: https://apps.apple.com/us/app/monster-legends-breeding-rpg/id653508448?uo=4


      Hack Features:
      - 1 Hit Kill
      - Skip Enemy Turn
      - Insane Score (Always 3 Stars)
      - No Skill Cost
      - Auto Win


      iOS Hack Download Link: https://iosgods.com/topic/176914-monster-legends-collect-all-v1632-5-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 284 replies
    • Otherworld Three Kingdoms Cheats v1.0.24 +4
      Modded/Hacked App: Otherworld Three Kingdoms By SuperPlanet corp.
      Bundle ID: com.superplanet.samworld
      iTunes Store Link: https://apps.apple.com/us/app/otherworld-three-kingdoms/id6496345383?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skills


      iOS Hack Download Link: https://iosgods.com/topic/183743-otherworld-three-kingdoms-cheats-v103-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 104 replies
    • BitLife - Life Simulator Cheats v3.17.3 +2
      Modded/Hacked App: BitLife - Life Simulator by Candywriter, LLC
      Bundle ID: com.wtfapps.apollo16
      iTunes Store Link: https://apps.apple.com/us/app/bitlife-life-simulator/id1374403536?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - Free Bitizen Purchase (Press Cancle) - Work for All Versions


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/84167-arm64-bitlife-life-simulator-v1412-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/84223-arm64-bitlife-life-simulator-cheats-all-versions-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 3,377 replies
    • Choices: Stories You Play Cheats v4.0.1 +4
      Modded/Hacked App: Choices: Stories You Play By Pixelberry Studios
      Bundle ID: com.pixelberrystudios.choices
      iTunes Store Link: https://apps.apple.com/us/app/choices-stories-you-play/id1071310449?uo=4


      Hack Features:
      - Free Premium Choices
      - Free Outfits
      - Free Hairstyles
      - Free Looks

      Note: able to purchase without having enough gems.


      iOS Hack Download Link: https://iosgods.com/topic/147155-choices-stories-you-play-v309-4-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 349 replies
    • Gran Saga Idle:KNIGHTSxKNIGHTS Cheats v1.23.0 +2
      Modded/Hacked App: Gran Saga Idle:KNIGHTSxKNIGHTS By Kakao Games Corp.
      Bundle ID: com.piedpixels.gransagaidle
      iTunes Store Link: https://apps.apple.com/us/app/gran-saga-idle-knightsxknights/id6482985104?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense


      iOS Hack Download Link: https://iosgods.com/topic/182761-gran-saga-idleknightsxknights-cheats-v101-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 245 replies
    • Cats & Soup Cheats v2.60.0 +2
      Modded/Hacked App: Cats & Soup By HIDEA Co.,Ltd
      Bundle ID: com.hidea.cat
      iTunes Store Link: https://apps.apple.com/us/app/cats-soup/id1581431235?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/157486-cats-soup-v196-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/157484-cats-soup-cheats-v196-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 280 replies
    • Dice Dreams Cheats v1.86.0 +2
      Modded/Hacked App: Dice Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dicedreams
      iTunes Store Link: https://apps.apple.com/us/app/dice-dreams/id1484468651?uo=4


      Hack Features:
      - Custom Rolls
      - Unlimited Coins - afford regardless of if you have enough


      iOS Hack Download Link: https://iosgods.com/topic/138011-dice-dreams%E2%84%A2-v1692-2-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 605 replies
    • [Global / KR] STARSEED: Asnia Trigger Cheats v3.4 +3
      Modded/Hacked App: STARSEED: Asnia Trigger By Com2uS Corp.
      Bundle ID: com.com2us.starseedgl.ios.apple.global.normal
      iTunes Store Link: https://apps.apple.com/us/app/starseed-asnia-trigger/id6504904399?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skills


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
       


      iOS Hack Download Link: https://iosgods.com/topic/188338-starseed-asnia-trigger-cheats-v115-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 43 replies
    • LAST CLOUDIA Cheats v5.10.0 +5
      Modded/Hacked App: LAST CLOUDIA By AIDIS Inc.
      Bundle ID: com.aidis.lastcloudiaen
      iTunes Store Link: https://apps.apple.com/us/app/last-cloudia/id1473588527?uo=4


      Hack Features:
      - God Mode
      - Infinite MP
      - Infinite SP
      - Infinite Ether


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/147069-last-cloudia-v1160-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/147068-last-cloudia-cheats-all-versions-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 459 replies
    • [ Last Cloudia TW ] 最後的克勞迪亞 Cheats v5.10.0 +5
      Modded/Hacked App: 最後的克勞迪亞 By Hong Kong Bao Chuan Software Technology Limited
      Bundle ID: com.boltrend.cloudia
      iTunes Store Link: https://apps.apple.com/tw/app/%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E/id1530784975?uo=4



      Hack Features:
      - God Mode
      - Infinite MP
      - Infinite SP
      - Infinite Ether


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/139142-last-cloudia-tw-%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E-v161-jailed-cheats-4/


      iOS Hack Download Link: https://iosgods.com/topic/139140-last-cloudia-tw-%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E-cheats-all-versions-4/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 386 replies
    • Summoners War Cheats v8.6.0 +7
      Hacked App: Summoners War By Com2uS Corp.
      iTunes Link: https://itunes.apple.com/us/app/summoners-war/id852912420?mt=8&uo=4&at=1010lce4
      Bundle ID: com.com2us.smon.normal.freefull.apple.kr.ios.universal

      Hack Features:
      - Damage Multiplier 
      - Godmode
      - Monster Count Unlink
      - Max Accuracy
      - No Skill Cooldown
      - First Turn
      - Build buildings without having required level
      - Antiban
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 6,797 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