Jump to content

IDA + LLDB Tutorial [Noob Friendly]


95 posts in this topic

Recommended Posts

Posted (edited)

@Ted2

 

Damn this is a good ass tutorial, I'm gathering up some tuts for Drapes and I stumbled across this one. There's some errors though

 

LDR             R1, [R0,#0xAC] //Loads the value of R0,#0xAC into R1 (ammo)
SUB             R1, R1, #1 // Substracts the value of one from R1 (ammo) into R1 (ammo)
STR             R1, [R0,#0xAC] //Stores R1 (ammo) into R0,#0xAC]
LDR             R1, =(unk_C80D00 - 0x15281C) //I've no idea, it does load something into our ammo atleast.

The LDR R1, [R0, #0xAC] isn't loading the value of R0,#0xAC because that isn't a value. It's loading the value stored in R0+0xac. R0 is holding the address for some object, and R0+0xAC is the instance variable (or something similar) for ammo. The value held in R0 (0x1501c9c0) is the address for the object stored in memory. 0x1501c9c0 + 0xac (which is 0x1501CA6C) is the memory address for the instance variable of the object at 0x1501c9c0 that holds ammo. Same issue here with the STR R1, [R0, #0xac], its not putting ammo back into R0,#0xAC, its storing the updated value into R0(our object address)+0xac(our ammo instance variable).

 

Edit: go back to your watchpoints and check out the memory address for ammo. its 0x1501ca6c! again, you set a watchpoint on the instance variable for ammo :)

On September 9, 2017 at 8:58 PM, Ted2 said:

We can see in the 'register read' output we wrote down, R0 = 0x1501c9c0 in hex decimal, which is 352438720 in decimal value.
This is a big number & get's loaded into our ammo it says. 
This doesn't make sense to me, because  if that's true we had lots of ammo xD

You should update the comments in the assembly and this part with what I typed.

 

On September 9, 2017 at 8:58 PM, Ted2 said:

How we hack the LDR:


- LDR R1, [R0,#0xAC] to LDR R1, [R7,#0xAC] --> What this does is load R7 (803 million) into our ammo instead of what the normal value should be.

This is incorrect. R7 typically stores a large garbage number so if the game tries to access R7+0xAC, it 99.9% will crash because its trying to access memory that doesn't exist. Or maybe it won't crash, but it will fail to load the ammo, leaving ammo to be a large uninitialized garbage number when its stored back, making it infinite. Its the same concept as above. R0 is the correct address of our object, R7 is some random thing. R0+0xac = where our ammo instance variable is stored, R7+0xac = ???? And your description of the hacked LDR is wrong, its loading uninitialized memory into R1, and that's what makes it infinite.

 

 

Updated by Guest
Posted (edited)
5 hours ago, shmoo said:

@Ted2

 

Damn this is a good ass tutorial, I'm gathering up some tuts for Drapes and I stumbled across this one. There's some errors though

 


LDR             R1, [R0,#0xAC] //Loads the value of R0,#0xAC into R1 (ammo)
SUB             R1, R1, #1 // Substracts the value of one from R1 (ammo) into R1 (ammo)
STR             R1, [R0,#0xAC] //Stores R1 (ammo) into R0,#0xAC]
LDR             R1, =(unk_C80D00 - 0x15281C) //I've no idea, it does load something into our ammo atleast.

The LDR R1, [R0, #0xAC] isn't loading the value of R0,#0xAC because that isn't a value. It's loading the value stored in R0+0xac. R0 is holding the address for some object, and R0+0xAC is the instance variable (or something similar) for ammo. The value held in R0 (0x1501c9c0) is the address for the object stored in memory. 0x1501c9c0 + 0xac (which is 0x1501CA6C) is the memory address for the instance variable of the object at 0x1501c9c0 that holds ammo. Same issue here with the STR R1, [R0, #0xac], its not putting ammo back into R0,#0xAC, its storing the updated value into R0(our object address)+0xac(our ammo instance variable).

 

Edit: go back to your watchpoints and check out the memory address for ammo. its 0x1501ca6c! again, you set a watchpoint on the instance variable for ammo :)

You should update the comments in the assembly and this part with what I typed.

 

This is incorrect. R7 typically stores a large garbage number so if the game tries to access R7+0xAC, it 99.9% will crash because its trying to access memory that doesn't exist. Or maybe it won't crash, but it will fail to load the ammo, leaving ammo to be a large uninitialized garbage number when its stored back, making it infinite. Its the same concept as above. R0 is the correct address of our object, R7 is some random thing. R0+0xac = where our ammo instance variable is stored, R7+0xac = ???? And your description of the hacked LDR is wrong, its loading uninitialized memory into R1, and that's what makes it infinite.

 

 

Thanks, will read & fix when i'm on pc ??. Also, isnt the 0x AC in here [R0,#0xAC] some kind of variable, cause I thought it was, I've never really added it or never seen someone added it to the offset. In unity games, you can actually see what thess #0x.... numbers mean, not that I use that while hacking.

Updated by Ted2
Posted
3 hours ago, Ted2 said:

Thanks, will read & fix when i'm on pc ??. Also, isnt the 0x AC in here [R0,#0xAC] some kind of variable, cause I thought it was, I've never really added it or never seen someone added it to the offset. In unity games, you can actually see what thess #0x.... numbers mean, not that I use that while hacking.

read the LDR and STR locations as register+number. The LDR loads whatever is at R0+0xAC into R1

Posted

F*ck, iOS 11 is not supported, I guess, LLDB have to be rebuilt.

 

lldb
dyld: Library not loaded: @rpath/liblldb.3.8.dylib
  Referenced from: /usr/bin/lldb
  Reason: no suitable image found.  Did find:
    /usr/bin/../lib/liblldb.3.8.dylib: code signing blocked mmap() of '/usr/bin/../lib/liblldb.3.8.dylib'
    /usr/lib/liblldb.3.8.dylib: code signing blocked mmap() of '/usr/lib/liblldb.3.8.dylib'
Abort trap

Installed libffi, readline via dpkg and Python via cydia.radare

On latest Electra.

Posted
On 3/11/2018 at 7:29 AM, trumansh0tmail.de said:

F*ck, iOS 11 is not supported, I guess, LLDB have to be rebuilt.

 


lldb
dyld: Library not loaded: @rpath/liblldb.3.8.dylib
  Referenced from: /usr/bin/lldb
  Reason: no suitable image found.  Did find:
    /usr/bin/../lib/liblldb.3.8.dylib: code signing blocked mmap() of '/usr/bin/../lib/liblldb.3.8.dylib'
    /usr/lib/liblldb.3.8.dylib: code signing blocked mmap() of '/usr/lib/liblldb.3.8.dylib'
Abort trap

Installed libffi, readline via dpkg and Python via cydia.radare

On latest Electra.

ios 11 is supported 

Guest
This topic is now closed to further replies.
  • Our picks

    • Slayer Legend Cheats v600.4.9 +5
      Modded/Hacked App: Slayer Legend By GEAR2
      Bundle ID: com.gear2.growslayer
      iTunes Store Link: https://apps.apple.com/us/app/slayer-legend/id1635712706?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Freeze Currencies


      iOS Hack Download Link: https://iosgods.com/topic/186299-slayer-legend-cheats-v50084-3/
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 124 replies
    • Go Go Wolf! Cheats v8.1 +4
      Modded/Hacked App: Go Go Wolf! By MONSTER PLANET Corp.
      Bundle ID: com.MonsterPlanet.WolfGame
      App Store Link: https://apps.apple.com/us/app/go-go-wolf/id6572283560?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
      - Instant Skills
      - Freeze Currencies

       

      Non-Jailbroken Hack: https://iosgods.com/topic/198033-go-go-wolf-v52-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/198032-go-go-wolf-cheats-v52-4/
        • Winner
        • Like
      • 30 replies
    • Cat Quest III v1.4.6 +14 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Cat Quest III By The Gentlebros Pte. Ltd.
      Bundle ID: com.thegentlebros.project-star
      App Store Link: https://apps.apple.com/us/app/cat-quest-iii/id1551304183?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Speed Multiplier
      - Time Scale Multiplier
      - Unlimited Gold -> Head into Settings and toggle the Restore Purchases button.*
      - Unlimited Crystals -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Equipment -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Skills -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Quest Items -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x1 -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x10 -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x50 -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Ship Blueprints -> Head into Settings and toggle the Restore Purchases button.*

      * - Only enable 1 feature at a time.
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 10 replies
    • Cat Quest III v1.4.6 +14 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Cat Quest III By The Gentlebros Pte. Ltd.
      Bundle ID: com.thegentlebros.project-star
      App Store Link: https://apps.apple.com/us/app/cat-quest-iii/id1551304183?uo=4

       
       

      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Speed Multiplier
      - Time Scale Multiplier
      - Unlimited Gold -> Head into Settings and toggle the Restore Purchases button.*
      - Unlimited Crystals -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Equipment -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Skills -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Quest Items -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x1 -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x10 -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x50 -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Ship Blueprints -> Head into Settings and toggle the Restore Purchases button.*

      * - Only enable 1 feature at a time.
        • Thanks
        • Winner
        • Like
      • 9 replies
    • Prince of Persia Lost Crown v1.1.2 +13 Cheats [ God / O-HK ]
      Modded/Hacked App: Prince of Persia Lost Crown By Ubisoft
      Bundle ID: com.ubisoft.princeofpersia.thelostcrown.mobile.action.adventure.platform
      iTunes Store Link: https://apps.apple.com/us/app/prince-of-persia-lost-crown/id6504011865?uo=4

       
       

      🤩 Hack Features

      - God Mode
      - One-Hit Kill -> Linked. Use with God Mode.
      -- Full Game Unlocked
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 195 replies
    • Raise a Joseon Hunter ( 조선헌터 키우기 ) v1.4.2 +6 Jailed Cheats [ Mega Hack ]
      Modded/Hacked App: 조선헌터 키우기 By GROUP1024 Co., Ltd
      Bundle ID: com.group1024.korea
      App Store Link: https://apps.apple.com/kr/app/%EC%A1%B0%EC%84%A0%ED%97%8C%ED%84%B0-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6746847732?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Attack Speed
      - Unlimited MP
      - Gold Multiplier
      - XP Multiplier
      • 5 replies
    • Raise a Joseon Hunter ( 조선헌터 키우기 ) v1.4.2 +6 Cheats [ Mega Hack ]
      Modded/Hacked App: 조선헌터 키우기 By GROUP1024 Co., Ltd
      Bundle ID: com.group1024.korea
      App Store Link: https://apps.apple.com/kr/app/%EC%A1%B0%EC%84%A0%ED%97%8C%ED%84%B0-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6746847732?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Attack Speed
      - Unlimited MP
      - Gold Multiplier
      - XP Multiplier
      • 2 replies
    • Coop TD v1.4.3 +3 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Coop TD By Supermagic Inc.
      Bundle ID: com.supermagic.ios.cooptd
      iTunes Store Link: https://apps.apple.com/us/app/coop-td/id6503702666?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Unlimited In-Game Gold
      - Unlimited In-Game Main Stones
        • Informative
        • Thanks
        • Winner
        • Like
      • 63 replies
    • Coop TD v1.4.3 +3 Cheats [ Damage + More ]
      Modded/Hacked App: Coop TD By Supermagic Inc.
      Bundle ID: com.supermagic.ios.cooptd
      iTunes Store Link: https://apps.apple.com/us/app/coop-td/id6503702666?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Unlimited In-Game Gold
      - Unlimited In-Game Main Stones
        • Informative
        • Agree
        • Winner
        • Like
      • 86 replies
    • Idle Zombie Miner: Gold Tycoon v2.252.2070 +1++ Jailed Cheat [ Currencies ]
      Modded/Hacked App: Idle Zombie Miner: Gold Tycoon By VISTREX LIMITED
      Bundle ID: com.zombie.idleminertycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-zombie-miner-gold-tycoon/id6471983323?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Idle Zombie Miner: Gold Tycoon v2.53.1001 +1++ Cheat [ 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 116 replies
    • Idle Zombie Miner: Gold Tycoon v2.252.2070 +1++ Cheat [ Currencies ]
      Modded/Hacked App: Idle Zombie Miner: Gold Tycoon By VISTREX LIMITED
      Bundle ID: com.zombie.idleminertycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-zombie-miner-gold-tycoon/id6471983323?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Idle Zombie Miner: Gold Tycoon v2.53.1001 +1++ Jailed Cheat [ 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 76 replies
    • MeChat - Interactive Stories v4.37.2 +5 Jailed Cheats [ Unlimited Gems ]
      Modded/Hacked App: MeChat - Interactive Stories By IMPONILOX LIMITED
      Bundle ID: world.playme.mechat
      App Store Link: https://apps.apple.com/us/app/mechat-interactive-stories/id1536157979?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

      - Unlimited Gems -> Will increase instead of decrease.
      - Unlock All Photos
      - Unlock All Audio Clips
      -- VIP Enabled

      VIP
      - Unlimited Gems -> Earn some then disable this feature. DO NOT SPEND ANY GEMS WHILST THIS FEATURE IS ENABLED!
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 809 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