Jump to content

[Tutorial] How to Hack Using GNU-Debugger (GDB)


26 posts in this topic

Recommended Posts

✻ Requirements

✔ Command-line Tool (Putty for Windows; Terminal for Mac)

✔ Memory Access Tool (iGameGuardian, Gameplayer, Gamegem)

✔ OpenSSH (available on BigBoss)

✔ GNU-Debugger (available on cydia.radare.org)

 

✻ Procedure

Firstly, use your memory access tool to find the address of your target (herein “coins”). If the tool you are using cannot find the address, this guide is not for you. There is another method to GDB hacking called breakpointing for this case, but I don’t know how to do it. If I learn it I will be sure to share it.

 

Once you have your address, load up your command-line tool and SSH to your device. To start GDB, follow the commands:

 

 

gdb
/* Loads up GDB */

att pid
/* This means attach process ID. If you don’t know it, the app binary usually works too.
This command will freeze the app so values do not change */

watch *0xADDRESS
/* Sets a watchpoint to your address, where “ADDRESS” is what you found with Gameplayer */

continue
/* Unfreezes the app */
Now it’s your job to change the value of coins, just like you would if hacking with Gameplayer. Once the value changes, the app should freeze because you set a watchpoint on coins. GDB will give you some tasty information now - in your command prompt, you should see the old value and new value of coins. You’ll also be given the “real” address of coins, which can be plugged into IDA (remember, addresses in your memory access tool are temporary and change every launch. The address GDB gives you is consistent until the app is updated).

 

✻ Other Useful Commands

ps ax
/* Loads all processes and their IDs */
display /i $pc
/* Type this after watchpointing. It tells GDB to automatically show the address’ function when frozen */
info r
/* Gives you the current value held in registers 0-12 */
stepi
/* Shows you the next function */
✻ Troubleshooting

GDB is not attaching when I use the app binary name - why?

Using the binary name doesn’t always work. To get the processor ID, quit GDB by simply typing “quit” and then type “ps ax” (no quotes). That will bring up all running processes on your device. Look for the one in /var/mobile/Applications - the pid is listed on the left.

 

When attaching a process, I get “Segmentation fault:11” and get kicked back to root - why?

The app you are trying to debug has anti-debug security. To get around this you’ll have to disable ptrace in IDA. I will not cover that in this guide, perhaps in another. It isn’t a very common issue at the moment, I’ve only seen Gameloft and TinyCo. use it.

 

GDB didn’t freeze when the value changed - why?

This bugged me all the time, and King Kong was nice enough to help me find a solution. :) It’s quite simple actually, just control+c to make Putty/Terminal give you back the command-line. From there, re-enter the watchpoint command and type continue. The new value and address should now pop up without even needing to change it again in-game.

 

The address GDB gave me isn’t a hackable function - why?

The address GDB spits out isn’t always the function to hack. Load up IDA and have a look around the address - most of the time the function you want to hack is above the address given to you. Remember there are multiple ways to hack a function, it really depends on how well you know ARM.

 

✻ Special Thanks

King Kong - For helping me on ptrace and freezing apps!

  • Like 3
  • Thanks 1
  • Agree 1
Link to comment
https://iosgods.com/topic/781-tutorial-how-to-hack-using-gnu-debugger-gdb/
Share on other sites

I figured out what Zahir wrote^^ BTW :o EvillyG00d!!!! :o:D

 

to do the x/20i you need to subtract 4 * 20  or 2 * 20 (for thumb ;) ) from the offset

 

BTW

1. watch -location *0xADDRESS gives you some better info than just watch :D

2. instead of display/i $pc you can do x/i $pc

and it doesnt do what u said it does.... complicated to explain.... like reload for ammo, or not enough coins if u attached a watchpoint to coins, pc will display the function that gives u the alert view saying u can't buy

3. you can use c , cont , or continue :)

Updated by -_-

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

    • Legend of Slime: Idle RPG War Cheats v3.5.1 +28 [Currencies, Rare Slime, ATK, DEF]
      Modded/Hacked App: Legend of Slime: Idle RPG War By LoadComplete
      Bundle ID: com.loadcomplete.slimeidle
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-slime-idle-rpg-war/id1618701110
       

      Hack Features:
      - 1337 Currencies
      - 8888 Currencies
      - 65K Currencies
      - 1M Currencies
      - 16M Currencies
      - Unlimited Coins
      - All Slimes/Characters Unlocked
      - Unlock Rare Newbie Slime -> Will unlock the rare, unreleased Newbie slime character. Use with All Slimes/Characters Unlocked.
      - Move Forward 10 Stages -> Head over to Settings and toggle the BGM button. This will progress you 10 stages forward.
      - God Mode
      - One-Hit Kill
      - Instant Attacks
      - Always Critical Hits
      - One-Hit Kill - Pets
      - Instant Attacks - Pets
      - Always Critical Hits - Pets
      - No Skill Cooldown
      - Slime Club Unlocked
      - Unlimited Season Pass Rewards
      -- No Ads
      • 388 replies
    • Cat Snack Bar Cheats v1.0.154 +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/
      • 66 replies
    • Battle Legion - Mass Battler Cheats v4.1.2 +4
      Modded/Hacked App: Battle Legion - Mass Battler By Traplight Ltd.
      Bundle ID: com.traplight.battleslides
      iTunes Store Link: https://apps.apple.com/us/app/battle-legion-mass-battler/id1435133042?uo=4&at=1010lce4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Win
      - Enemies Don't Move
      - Enemies Don't Attack

      NOTE: This cheat will auto update itself so it work for all version. For Instant Win feature it will update in-game so it will freeze your game for few sec, just wait for it you only need to do this once. DO NOT QUIT THE GAME

      NOTE 2: I recommended turn on each features for each attack so the cheat can update itself smoothly


      iOS Hack Download Link: https://iosgods.com/topic/129669-battle-legion-mass-battler-cheats-all-versions-x-player-damage-more/
      • 516 replies
    • Sword Master Story Cheats v4.91.545 +5
      Modded/Hacked App: Sword Master Story By SuperPlanet corp.
      Bundle ID: com.superplanet.swordmaster
      iTunes Store Link: https://apps.apple.com/us/app/sword-master-story/id1521447065?uo=4


      Hack Features:
      - Custom Player Stats
      - Weak Enemies
      - One Hit Kill
      - & More

      Press & Hold to read feature description


      iOS Hack Download Link: https://iosgods.com/topic/146819-sword-master-story-cheats-v42294-3/
      • 1,392 replies
    • CarX Drift Racing 2 Cheats v1.36.0 +1
      Modded/Hacked App: CarX Drift Racing 2 by KAR IKS TEKHNOLODZHIS, OOO
      Bundle ID: com.carx-tech.carxdr2
      iTunes Store Link: https://apps.apple.com/us/app/carx-drift-racing-2/id1198510863?uo=4&at=1010lce4


      Hack Features:
      - Free Store

      NOTE: You can purchase and upgrade for FREE even if you don't have enough. BUT once you exit the game will revert back to normal state, that mean for example if you purchased a new car or car slot and you exit the game, when you re-open it still not purchase. So what is the benefit from this cheat?

      1/ Get high end car and complete mission or pvp
      2/ If you purchased a new car and upgrade it max with Free Store, but you exit the game and the car will remain unpurchased. BUT once you have enough cash / money and purchase that car again, the full upgrade is still there


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/131064-arm64-carx-drift-racing-2-v1100-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/132779-arm64-carx-drift-racing-2-cheats-all-versions-1/
      • 813 replies
    • Archero Cheats v6.8.2 +5 [ God Mode & More ]
      Modded/Hacked App: Archero by HABBY PTE. LTD.
      Bundle ID: com.habby.archero
      iTunes Store Link: https://apps.apple.com/us/app/archero/id1453651052?uo=4&at=1010lce4



      Hack Features:
      - Multiply Defense to
      - Multiply Damage to
      - God Mode
      - OHK (Must use with God Mode)
      - Freeze Enemies

      NOTE: If you want to use god mode and ohk turn off multiply damage and defense first. I added multiply damage and defense there to avoid ban


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/100710-archero-v210-enemies-dont-attack-x30-attack/


      Hack Download Link: https://iosgods.com/topic/96783-arm64-archero-cheats-v220-5/
      • 15,747 replies
    • RPG AVABEL ONLINE Cheats v11.12.1 - [ God Mode & More ]
      Modded/Hacked App: RPG AVABEL ONLINE By ASOBIMO,Inc.
      Bundle ID: com.asobimo.AvabelOnline
      iTunes Store Link: https://itunes.apple.com/us/app/rpg-avabel-online/id606800657
       

      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:
      - God Mode 
      - Cast Speed Multiplier
      - Charge Speed Multiplier
      - Approach Speed Multiplier
      - No Roll CoolDown
      - No Skills CoolDown

      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.
      • 2,127 replies
    • Wasteland Life: Survival Idle v2.0.2 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Wasteland Life: Survival Idle By SayGames LTD
      Bundle ID: com.wasteland.heart
      iTunes Store Link: https://apps.apple.com/us/app/wasteland-life-survival-idle/id6469495213?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems
      -- No Ads


      Jailbreak required hack(s): [Mod Menu Hack] Wasteland Life: Survival Idle v2.0.2 +3 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/
      • 1 reply
    • Wasteland Life: Survival Idle v2.0.2 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Wasteland Life: Survival Idle By SayGames LTD
      Bundle ID: com.wasteland.heart
      iTunes Store Link: https://apps.apple.com/us/app/wasteland-life-survival-idle/id6469495213?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems
      -- No Ads 


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Wasteland Life: Survival Idle v2.0.2 +3 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/
      • 5 replies
    • Idle Ninja Online v2340 +8 Jailed Cheats
      Modded/Hacked App: Idle Ninja Online By Puzzle Monsters Inc.
      Bundle ID: com.puzzlemonsters.growninja
      iTunes Store Link: https://apps.apple.com/us/app/idle-ninja-online/id1559182313?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:
      - Hit Count Multiplier
      - Disable Enemy Skills
      - Move Speed Multiplier
      - Attack Speed Multiplier 
      - Shuriken Count Multiplier 
      - No Skills Cooldown
      - Shuriken Penetrate All Enemies
      - No Mana Skills


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please 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:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 218 replies
    • Idle Ninja Online v2340 +9 Cheats
      Modded/Hacked App: Idle Ninja Online By Puzzle Monsters Inc.
      Bundle ID: com.puzzlemonsters.growninja
      iTunes Store Link: https://apps.apple.com/us/app/idle-ninja-online/id1559182313?uo=4


      Hack Features:
      - Hit Count Multiplier
      - Disable Enemy Skills
      - Move Speed Multiplier
      - Attack Speed Multiplier 
      - Shuriken Count Multiplier 
      - No Skills Cooldown
      - Shuriken Penetrate All Enemies 
      - No Mana Skills 
      - Jailbreak Detection Removed


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


      iOS Hack Download Link: https://iosgods.com/topic/148430-idle-ninja-online-v2312-9-cheats/
      • 666 replies
    • Crystal Knights-32 Player Raid v1.51.2 +3 Cheats
      Modded/Hacked App: Crystal Knights-32 Player Raid By DAERI SOFT
      Bundle ID: com.daerigame.raidproject
      iTunes Store Link: https://apps.apple.com/us/app/crystal-knights-32-player-raid/id6451132804?uo=4


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


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier
      - Loot Multiplier


      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. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: 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 & Answers 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, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 205 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