Jump to content

Debugging apps on iOS 13 with LLDB (watchpoints supported)


64 posts in this topic

Recommended Posts

Hi, I looked at the tutorials section here and saw that the only tutorial about debugging was a tutorial by Ted22 without support for watchpoints. This does support wp and is you don't need to download stuff from unofficial sources. But I do recommend reading his tutorial as it covers other stuff.

For this you need Xcode & Homebrew. (on macOS). Probably works on GNU/Linux if you get debugserver and the right iOS SDK some other way, or you could run macOS in a VM.

Run this to get ldid:

brew install ldid

Then you need to get the right debugserver. Run 

cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ (iPadOS if you're using an iPad, I guess)

Then do an ls to list all available versions. In my case "13.3" since I run iOS 13.3.1 on an iPhone X.

Run this to mount the DeveloperDiskImage of your version. 13.3 in my case.

open ./13.3/DeveloperDiskImage.dmg

Then open your mounted disk image and go to DeveloperDiskImage/usr/bin. There you'll find debugserver. Copy that to your computer somewhere. I used ~/Documents/debugserver

To thin your binary, run 

lipo -thin arm64 ./debugserver -output ./debugserverthin (if using arm64)
lipo -thin arm64e ./debugserver -output ./debugserverthin (if using arm64e, iPhone XS and above, haven't tried though, maybe arm64 will work fine aswell)

Next, sign debugserver with this xml file (save as ent.xml):

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>com.apple.springboard.debugapplications</key>
        <true/>
        <key>get-task-allow</key>
        <true/>
        <key>task_for_pid-allow</key>
        <true/>
        <key>run-unsigned-code</key>
        <true/>
</dict>
</plist>

Using ldid as such: 

ldid -Sent.xml ./debugserverthin

Copy it to your phone using sftp.

sftp root@yourphoneip

then 

put debugserverthin

now SSH into your phone and run

mv ./debugserverthin /usr/bin/debugserver (/usr/local/bin is more standard but /usr/bin just worked for me so I'll go with that, doesn't really matter).

 

Run this to find all running processes.  I'll use Hill Climb Racing as an example:

ps -A

Example output: 51523 ??         0:34.60 /var/containers/Bundle/Application/72FDFED4-16FB-47FE-999D-1CD53CF16B8C/Hill Climb Racing.app/Hill Climb Racing

Run debugserver to start the debugging server. To specify which process to attach on, do it like this:

debugserver 0.0.0.0:1234 -a "Hill Climb Racing"

To attach LLDB from your Mac, run this (ON MAC, not phone).

lldb
(lldb) platform select remote-ios
(lldb) process connect connect://yourphoneip:1234

To set watchpoints (got addr from iGG, gold value):

(lldb) process interrupt
Process 51523 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00000001b7044634 libsystem_kernel.dylib`mach_msg_trap + 8
libsystem_kernel.dylib`mach_msg_trap:
->  0x1b7044634 <+8>: ret

libsystem_kernel.dylib`mach_msg_overwrite_trap:
    0x1b7044638 <+0>: mov    x16, #-0x20
    0x1b704463c <+4>: svc    #0x80
    0x1b7044640 <+8>: ret
Target 0: (Hill Climb Racing) stopped.
(lldb) w s e -s 4 -- 0x106128024
Watchpoint created: Watchpoint 1: addr = 0x106128024 size = 4 state = enabled type = w
    new value: 148742069
(lldb) c
Process 51523 resuming

When your watchpoints gets triggered you'll see disassembled code that ran some instruction on your data. Example (when buying from store):

Watchpoint 1 hit:
old value: 148742069
new value: 148642069
Process 51523 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = watchpoint 1
    frame #0: 0x0000000104a38a74 Hill Climb Racing`___lldb_unnamed_symbol5830$$Hill Climb Racing + 276
Hill Climb Racing`___lldb_unnamed_symbol5830$$Hill Climb Racing:
->  0x104a38a74 <+276>: mov    x0, x19
    0x104a38a78 <+280>: mov    x1, x20
    0x104a38a7c <+284>: bl     0x104a38d94               ; ___lldb_unnamed_symbol5832$$Hill Climb Racing
    0x104a38a80 <+288>: add    x8, sp, #0x30             ; =0x30
Target 0: (Hill Climb Racing) stopped.

I have literally no idea how to write ARM assembly but I'd guess that you could replace the instructions at 0x104a38a74 with NOP's to get free-buy, or write a jmp to your own function for mid-function hooks. I suggest watching other tutorials for that, I'm only good at Windows hacking but I may learn some iOS soon :D.

 

For moderators who review: can I wrap everything in hide-tags without messing up everything? I don't really care but a few more likes is cool 😛

I'll make a follow-up some day when I actually create a fully featured cheat with this, iGG, Theos and a disassembler like Ghidra or Binary Ninja.

Secret:

Hidden Content

React or reply to this topic to see the hidden content & download link.

Updated by Affe2626
  • Like 114
  • Winner 14
  • Thanks 7
  • Haha 4
  • Agree 2
  • Informative 8
Link to comment
https://iosgods.com/topic/123544-debugging-apps-on-ios-13-with-lldb-watchpoints-supported/
Share on other sites

1 hour ago, Rook said:

Thank you for sharing this with us!

I think adding hide here will ruin the topic. :)

Yep, that's fine, I attached a hidden meme instead. I may do a video next time when I make a cheat with this. Let's see how that goes

On 4/16/2020 at 6:08 AM, K_K said:

So this has to done on a mac?..

I haven't tried anything else. If you get LLDB to run with an iOS SDK on another OS then probably. The remote-ios platform maybe only exists on the macOS version of LLDB (but you can always try). Search for how to set SDK path. It does that automatically if you have Xcode installed for macOS. 

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

    • Smashero.io - Hack N Slash RPG v1.10.2 +2 Jailed Cheats [ God / O-HK ]
      Modded/Hacked App: Smashero.io - Hack N Slash RPG By CANNON CRACKER, Inc.
      Bundle ID: com.cc.Smashero
      iTunes Store Link: https://apps.apple.com/us/app/smashero-io-hack-n-slash-rpg/id6505129091?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Smashero.io - Hack N Slash RPG v3.3 +2 Cheats [ God / O-HK ] - 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/
      • 14 replies
    • Smashero.io - Hack N Slash RPG v1.10.2 +2 Cheats [ God / O-HK ]
      Modded/Hacked App: Smashero.io - Hack N Slash RPG By CANNON CRACKER, Inc.
      Bundle ID: com.cc.Smashero
      iTunes Store Link: https://apps.apple.com/us/app/smashero-io-hack-n-slash-rpg/id6505129091?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] Smashero.io - Hack N Slash RPG v3.3 +2 Jailed Cheats [ God / O-HK ] - 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/
        • Like
      • 26 replies
    • LYSSA: Goddess of Rage v14.0.2 +2++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: LYSSA: Goddess of Rage By PANORAMIK GAMES LTD
      Bundle ID: com.panoramik.lyssa
      iTunes Store Link: https://apps.apple.com/us/app/lyssa-goddess-of-rage/id6469112395?uo=4

       
       

      🚀 Hack Features

      - Unlimited Everything
      - Season Pass Unlocked


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] LYSSA: Goddess of Rage v14.0.2 +2++ Cheats [ Unlimited Everything ] - Free Jailbroken Cydia Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Thanks
        • Like
      • 6 replies
    • LYSSA: Goddess of Rage v14.0.2 +2++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: LYSSA: Goddess of Rage By PANORAMIK GAMES LTD
      Bundle ID: com.panoramik.lyssa
      iTunes Store Link: https://apps.apple.com/us/app/lyssa-goddess-of-rage/id6469112395?uo=4

       

       
       

      🚀 Hack Features

      - Unlimited Everything
      - Season Pass Unlocked


      🍏 For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] LYSSA: Goddess of Rage v14.0.2 +2++ Jailed Cheats [ Unlimited Everything ] - Free Non-Jailbroken IPA Cheats - iOSGods
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 6 replies
    • MA 2 – President Simulator v1.0.24 +4++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: MA 2 – President Simulator By OXIWYLE TOV
      Bundle ID: com.oxiwyle.modernage2
      iTunes Store Link: https://apps.apple.com/us/app/ma-2-president-simulator/id6503986463?uo=4

       


      🚀 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      -- Premium Enabled
      -- Acceleration Enabled
      -- No Ads Enabled


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] MA 2 – President Simulator v1.0.24 +4++ Cheats [ Unlimited Everything ] - Free Jailbroken Cydia Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 0 replies
    • MA 2 – President Simulator v1.0.24 +4++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: MA 2 – President Simulator By OXIWYLE TOV
      Bundle ID: com.oxiwyle.modernage2
      iTunes Store Link: https://apps.apple.com/us/app/ma-2-president-simulator/id6503986463?uo=4

       


      🚀 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      -- Premium Enabled
      -- Acceleration Enabled
      -- No Ads Enabled


      🍏 For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] MA 2 – President Simulator v1.0.24 +4++ Jailed Cheats [ Unlimited Everything ] - Free Non-Jailbroken IPA Cheats - iOSGods
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 3 replies
    • MA 1 – President Simulator v1.2.40 +4++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: MA 1 – President Simulator By OXIWYLE TOV
      Bundle ID: com.oxiwyle.modernage
      iTunes Store Link: https://apps.apple.com/us/app/ma-1-president-simulator/id1501305792?uo=4

       
       

      🚀 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      -- Premium Enabled
      -- Acceleration Enabled
      -- No Ads Enabled


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] MA 1 – President Simulator v1.2.40 +4++ Cheats [ Unlimited Everything ] - Free Jailbroken Cydia Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 0 replies
    • MA 1 – President Simulator v1.2.40 +4++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: MA 1 – President Simulator By OXIWYLE TOV
      Bundle ID: com.oxiwyle.modernage
      iTunes Store Link: https://apps.apple.com/us/app/ma-1-president-simulator/id1501305792?uo=4

       


      🚀 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      -- Premium Enabled
      -- Acceleration Enabled
      -- No Ads Enabled


      🍏 For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] MA 1 – President Simulator v1.2.40 +4++ Jailed Cheats [ Unlimited Everything ] - Free Non-Jailbroken IPA Cheats - iOSGods
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 1 reply
    • GrandChase Cheats v1.86.1 +4 [ Multiply Attack & More ]
      Modded/Hacked App: GrandChase By KOG co., Ltd
      Bundle ID: com.kog.grandchaseglobal
      iTunes Store Link: https://itunes.apple.com/us/app/grandchase/id1385904294?mt=8&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:
      - x Player Damage - x1 - 100
      - x Player HP - x1 - 100
      - Auto-Win
      - Unlimited Skills

      All features are unlinked and only for player, you!

      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.
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 1,443 replies
    • (Rums Spring And Dungeon) ラムの泉とダンジョン:ハクスラ&放置RPG v5.0.4 +3 Jailed Cheats
      Modded/Hacked App: ラムの泉とダンジョン:ハクスラ&放置RPG By SHINICHI FUJIMOTO
      Bundle ID: com.RSGames.RumsSpringAndDungeon
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%83%A9%E3%83%A0%E3%81%AE%E6%B3%89%E3%81%A8%E3%83%80%E3%83%B3%E3%82%B8%E3%83%A7%E3%83%B3-%E3%83%8F%E3%82%AF%E3%82%B9%E3%83%A9-%E6%94%BE%E7%BD%AErpg/id1577284786?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:
      - Exp Multiplier
      - Gold Multiplier
      - Dumb Enemies


      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
      • 15 replies
    • (Colopl Rune Story Japan) 白猫プロジェクト v5.19.1 +6 Jailed Cheats
      Modded/Hacked App: 白猫プロジェクト By COLOPL, Inc.
      Bundle ID: jp.colopl.wcat
      iTunes Store Link: https://apps.apple.com/jp/app/%E7%99%BD%E7%8C%AB%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88/id895687962?uo=4

       

      Mod Requirements:
      - Jailbroken or Non-Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.





      Hack Features:
      - Loot Multiplier - x1 - 100
      - Damage Multiplier
      - Never Die
      - Custom Damage
      - Unlimited SP
      - Move Speed Multiplier


      Jailbreak required hack(s): 


      Hack Download Link:

      Hidden Content
      React or reply to this topic to see the <a href='https://iosgods.com/topic/3762-info-how-to-unlockview-the-hidden-content-on-iosgods/?do=findComment&comment=78119'>hidden content & download link</a>.








      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.
      STEP 3: Download Cydia Impactor and extract the archive.
      STEP 4: Open/Run Cydia Impactor on your computer then connect your iOS Device and wait until your device name shows up on Cydia Impactor.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Cydia Impactor application.
      STEP 6: You will now be asked to enter your iTunes/Apple ID email login & then your password. Go ahead and enter the required information..
      STEP 7: Wait for Cydia Impactor to finish sideloading/installing the hacked IPA.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will now need to go to your Settings -> General -> Profiles & 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 instructions inside the hack's popup in-game.

      NOTE: For free Apple Developer accounts you will need to repeat this process every 7 days. Using a disposable Apple ID for this process is suggested but not required. Jailbroken iDevices can skip using Cydia Impactor and just install the IPA mod with AppSync & IPA Installer (or alternatives) from Cydia. If you have any questions or problems, read our Cydia Impactor topic and if you don't find 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:

       
        • Thanks
        • Winner
      • 468 replies
    • (Rums Spring And Dungeon) ラムの泉とダンジョン:ハクスラ&放置RPG v5.0.4 +3 Cheats
      Modded/Hacked App: ラムの泉とダンジョン:ファンタジー ハクスラ 放置系RPG By SHINICHI FUJIMOTO
      Bundle ID: com.RSGames.RumsSpringAndDungeon
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%83%A9%E3%83%A0%E3%81%AE%E6%B3%89%E3%81%A8%E3%83%80%E3%83%B3%E3%82%B8%E3%83%A7%E3%83%B3-%E3%83%95%E3%82%A1%E3%83%B3%E3%82%BF%E3%82%B8%E3%83%BC-%E3%83%8F%E3%82%AF%E3%82%B9%E3%83%A9-%E6%94%BE%E7%BD%AE%E7%B3%BBrpg/id1577284786?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:
      - Exp Multiplier
      - Gold Multiplier
      - Dumb Enemies


      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
      • 31 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