Jump to content

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


1,545 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

    • Honkai Impact 3 (SEA) Cheats v8.1.0 +2 [ Multiply Attack & Defense ]
      Modded/Hacked App: Honkai Impact 3 By COGNOSPHERE PTE. LTD.
      Bundle ID: com.miHoYo.bh3oversea
      iTunes Store Link: https://apps.apple.com/ph/app/honkai-impact-3/id1299582178?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Multiply Attack
      - Multiply Defense

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/134285-honkai-impact-3-sea-cheats-v810-2-multiply-attack-defense/
      • 491 replies
    • [Puzzles & Dragons JP] パズル&ドラゴンズ v22.0.1 Jailed Cheats +2
      Modded/Hacked App: パズル&ドラゴンズ By GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.pad
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%83%91%E3%82%BA%E3%83%AB-%E3%83%89%E3%83%A9%E3%82%B4%E3%83%B3%E3%82%BA/id493470467?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/133984-puzzle-dragons-japan-english-cheats-all-versions-3/


      iOS Hack Download Link: https://iosgods.com/topic/135539-puzzles-dragons-jp-%E3%83%91%E3%82%BA%E3%83%AB%EF%BC%86%E3%83%89%E3%83%A9%E3%82%B4%E3%83%B3%E3%82%BA-v1852-jailed-cheats-2/
      • 383 replies
    • Honkai Impact 3rd Cheats v8.1.0 +2 [ Multiply Attack & Defense ]
      Modded/Hacked App: Honkai Impact 3rd By COGNOSPHERE PTE. LTD.
      Bundle ID: com.miHoYo.bh3global
      iTunes Store Link: https://apps.apple.com/us/app/honkai-impact-3rd/id1336342304?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Multiply Attack
      - Multiply Defense

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/134276-honkai-impact-3rd-cheats-v810-2-multiply-attack-defense/
      • 620 replies
    • Cat Snack Bar Cheats v1.0.164 +1
      Modded/Hacked App: Cat Snack Bar By treeplla Inc.
      Bundle ID: com.tree.idle.catsnackbar
      iTunes Store Link: https://apps.apple.com/us/app/cat-snack-bar/id6443895159?uo=4


      Hack Features:
      - Freeze Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/170232-cat-snack-bar-v1036-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/170233-cat-snack-bar-cheats-v1036-1/
      • 72 replies
    • My Cafe — Restaurant game Cheats v2025020.4.681 +3
      Modded/Hacked App: My Cafe — Restaurant game by Melsoft
      Bundle ID: com.Melesta.MyCafe
      iTunes Store Link: https://apps.apple.com/us/app/my-cafe-restaurant-game/id1068204657?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:
      - Unlimited Gems
      - VIP Level 7 (probably visual)


      Notes:
      - To get unlimited gems, just get some gems from the customers.
      - If you purchase using gems from certain places like the VIP Store, it will cause you to restart the game
      - If you have "a lot" gems, you can turn off cheats to see if it works without the hax.
      - "a lot" means a lot of gems 

      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/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above.
      STEP 2: Copy the file over to your iDevice using any of the file managers mentioned above or skip this step if you're downloading from your iDevice.
      STEP 3: Using iFile or Filza, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will then need to press on 'Installer' or 'Install' from the options on your screen.
      STEP 5: Let iFile / Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: Now open your iDevice settings and scroll down until you see the settings for this cheat and tap on it. If the hack is a Mod Menu, the cheat features can be toggled in-game.
      STEP 7: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - @Zahir


      Cheat Video/Screenshots:
      • 639 replies
    • Monster Legends: Collect all Cheats v17.8 +8
      Modded/Hacked App: Monster Legends: Merge RPG By Socialpoint
      Bundle ID: es.socialpoint.MonsterCity
      iTunes Store Link: https://apps.apple.com/us/app/monster-legends-merge-rpg/id653508448?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🤩 Hack Features

      - 1 Hit Kill
      - Skip Enemy Turn
      - Multiply Attack
      - Multiply Defense
      - Insane Score (Always 3 Stars)
      - No Skill Cost
      - Auto Win
      - Auto Play Battle Enabled for All Maps


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/topic/140543-monster-legends-collect-all-v1778-5-cheats-for-jailed-idevices/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/176914-monster-legends-collect-all-cheats-v1779-8/
      • 311 replies
    • Rent Please! Landlord Sim Cheats v1.5.4 +2
      Modded/Hacked App: Rent Please! Landlord Sim By Shimmer Games Co., Ltd.
      Bundle ID: com.shimmergames.tenants.gb.en
      iTunes Store Link: https://apps.apple.com/us/app/rent-please-landlord-sim/id1645842987?uo=4


      Hack Features:
      - Infinite Currencies
      - No Ads


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/168311-rent-please-landlord-sim-v111-jailed-cheats-2/


      iOS Hack Download Link: https://iosgods.com/topic/168312-rent-please-landlord-sim-cheats-v111-2/
      • 134 replies
    • Angry Birds 2 Cheats v3.27.2 +1 [ Infinite Currencies ]
      Modded/Hacked App: Angry Birds 2 By Rovio Entertainment Oyj
      Bundle ID: com.rovio.baba
      iTunes Store Link: https://apps.apple.com/us/app/angry-birds-2/id880047117?uo=4


      Hack Features:
      - Infinite Currencies ( Spend some/ Get some )


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/70081-angry-birds-2-v2600-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/72039-angry-birds-2-cheats-v2600-1-infinite-currencies/
      • 1,935 replies
    • CarX Street Cheats v1.9.1 +6
      Modded/Hacked App: CarX Street By KAR IKS TEKHNOLODZHIS, OOO
      Bundle ID: com.carxtech.sr
      iTunes Store Link: https://apps.apple.com/us/app/carx-street/id1458863319?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Unlimited Money [ Buy Fuel ]
      - Unlimited Gold [ Change Nickname ]
      - Unlimited Nitro
      - Freeze Fuel
      - 1 Million XP [ add some ] - risky
      - No Traffic

      Note: You can change nickname while having 0 gold.
      Note 2: You may be banned for abusing the hack. Please do not use high currency values. If you get blocked, deleting the game and installing it again should allow you to use guest account.

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/162931-carx-street-cheats-v191-6/
        • Like
      • 3,071 replies
    • Music Wars Rockstar: Rap Life v1.2.5 Cheats +4
      Modded/Hacked App: Music Wars Rockstar: Rap Life By Music Wars LLC
      Bundle ID: com.mwcompany.MusicWarsRockstar
      iTunes Store Link: https://apps.apple.com/us/app/music-wars-rockstar-rap-life/id1623455289?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:
      - Unlimited money
      - Unlimited creativity
      - Unlimited health
      - Unlimited happiness
      • 242 replies
    • Grand Mountain Adventure 2 v1.018 Jailed Cheats +1
      Modded/Hacked App: Grand Mountain Adventure 2 By Toppluva AB
      Bundle ID: com.toppluva.grandmountain2
      iTunes Store Link: https://apps.apple.com/us/app/grand-mountain-adventure-2/id6475040075?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Free iAP (Press cancel when Buy) -- Turn on cheat option inside iOSGods Menu first

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/192158-grand-mountain-adventure-2-v1018-jailed-cheats-1/
      • 0 replies
    • Romance Club - Stories I Play v1.0.39200 +1 Cheat [ Free Choices ]
      Modded/Hacked App: Romance Club - Stories I Play By Your Story Interactive
      Bundle ID: com.yourstoryinteractive.sails.pirate.adventure
      iTunes Store Link: https://apps.apple.com/us/app/romance-club-stories-i-play/id1300588558
       

      Hack Features:
      - All Chapters Unlocked
      - Free Premium Choices


      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/
      • 127 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