Jump to content

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


1,568 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 305
  • Winner 37
  • Thanks 41
  • Haha 20
  • Agree 32
  • Informative 35
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

    • Parties & Puzzles: Tile Games v7.9 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Parties & Puzzles: Tile Games By Snax Games LTD
      Bundle ID: com.snax.puzzle2
      iTunes Store Link: https://apps.apple.com/us/app/parties-puzzles-tile-games/id1587568164?uo=4

      🤩 Hack Features

      - Cash
      - Stars
      - Cards
      • 3 replies
    • Parties & Puzzles: Tile Games v7.9 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Parties & Puzzles: Tile Games By Snax Games LTD
      Bundle ID: com.snax.puzzle2
      iTunes Store Link: https://apps.apple.com/us/app/parties-puzzles-tile-games/id1587568164?uo=4


      🤩 Hack Features

      - Cash
      - Stars
      - Cards 
      • 5 replies
    • Lollipop 3: Match 3 Puzzles v25.0429.00 [ +5 Cheats ] Auto Win
      Modded/Hacked App: Lollipop 3: Match 3 Puzzles By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.lollipopsweetheroesmatch3
      iTunes Store Link: https://apps.apple.com/us/app/lollipop-3-match-3-puzzles/id1634326372?uo=4
       

      🤩 Hack Features

      - Coins

      - Lives

      - Booster

      - Moves

      - Auto Win 
      • 5 replies
    • Lollipop 3: Match 3 Puzzles v25.0429.00 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Lollipop 3: Match 3 Puzzles By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.lollipopsweetheroesmatch3
      iTunes Store Link: https://apps.apple.com/us/app/lollipop-3-match-3-puzzles/id1634326372?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

      - Coins

      - Lives

      - Booster

      - Moves

      - Auto Win 

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 8 replies
    • Seraphim Saga: Idle RPG Cheats v1.8.1 +2
      Modded/Hacked App: Seraphim Saga: Idle RPG By EOAG Games Co.,Ltd
      Bundle ID: com.EOAG.WingsIdle
      App Store Link: https://apps.apple.com/us/app/seraphim-saga-idle-rpg/id6633424325?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

      - God Mode
      - Multiply Attack

       

      Free Non-Jailbroken Hack: https://iosgods.com/topic/195094-seraphim-saga-idle-rpg-v180-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/195092-seraphim-saga-idle-rpg-cheats-v180-2/
      • 13 replies
    • Snake.io - Fun Online Snake V1.21.4 [ +12 Cheats ] AI Stupid
      Modded/Hacked App: Snake.io - Fun Online Snake By Kooapps
      Bundle ID: com.amelosinteractive.snake
      iTunes Store Link: https://apps.apple.com/us/app/snake-io-fun-online-snake/id1104692136?uo=4


      Hack Features:
      - No ADS

      - AI Stupid 

      - Skin Unlocked 

      - Revive Unlimited

      - Immortal 

      - Wall Hack

      - Boss [ Size Small ] Only Event 

      - Boss [ HP 1 ] Easy Kill [ Only Event ]

      - Eat Radius

      - Eat Multiplier 

      - Eat Size Big 🔴🔵⚫ 

      - Score Multiplier [ Linked - Eat Multiplier & Eat Size & Eat Radius ]


      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/
        • Like
      • 79 replies
    • Snake.io - Fun Online Snake V1.21.4 [ +12 Jailed ] AI Stupid
      Modded/Hacked App: Snake.io - Fun Online Snake By Kooapps
      Bundle ID: com.amelosinteractive.snake
      iTunes Store Link: https://apps.apple.com/us/app/snake-io-fun-online-snake/id1104692136?uo=4


      Hack Features:

      - No ADS

      - AI Stupid 

      - Skin Unlocked 

      - Revive Unlimited

      - Immortal 

      - Wall Hack

      - Boss [ Size Small ] Only Event 

      - Boss [ HP 1 ] Easy Kill [ Only Event ]

      - Eat Radius

      - Eat Multiplier 

      - Eat Size Big 🔴🔵⚫ 

      - Score Multiplier [ Linked - Eat Multiplier & Eat Size & Eat Radius ]


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      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 IPA Link:

      Hidden Content

      Download via the iOSGods App
      • 80 replies
    • Puzzle & Dragons (English) v22.1.0 Jailed Cheats +2
      Modded/Hacked App: Puzzle & Dragons (English) By GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padEN
      iTunes Store Link: https://apps.apple.com/us/app/puzzle-dragons-english/id563474464?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/135066-puzzle-dragons-english-v1931-jailed-cheats-2/
      • 312 replies
    • [ JP / Global/ KR] Puzzle & Dragons Cheats v22.2.0 +3
      Modded/Hacked App: Puzzle & Dragons (English) by GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padEN
      iTunes Store Link: https://apps.apple.com/us/app/puzzle-dragons-english/id563474464?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - OHK
      - Frozen Enemies


      iOS Hack Download Link: https://iosgods.com/topic/133984-puzzle-dragons-jp-english-cheats-all-versions-3/
        • Like
      • 446 replies
    • DEAD TARGET: FPS Zombie Games v6.150.0 [ +10 Cheats ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 13 replies
    • DEAD TARGET: FPS Zombie Games v6.150.0 [ +10 Jailed ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 21 replies
    • Chaos Road: 3D Car Racing Game v5.15.3 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Chaos Road: 3D Car Racing Game By Supercharge Mobile Corp.
      Bundle ID: com.Zeeppo.ChaosRoad
      iTunes Store Link: https://apps.apple.com/us/app/chaos-road-3d-car-racing-game/id1471023434?uo=4

      Hack Features:
      - Gems
      - Gold
      - ViP Active 
      • 15 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