Jump to content

[TUTORIAL] How To use GikDbg - LLDB for Windows!


Oxytyramine

10 posts in this topic

Recommended Posts

What is GikDbg?
GikDbg is a mobile platform assembly-level debugger, which is an application debugging tool for security researchers.It is based on: OllyDbg (32-bit assembler level analysing debugger for Microsoft? Windows); GDB (GDB, the GNU Project debugger); LLVM (collection of modular and reusable compiler and tool-chain technologies).
 

What features can GikDbg support?

  • ELF / Mach-O executable file static analysis;
  • Android / iOS App dynamic debugging;
  • Android / iOS remote console;
  • ARM assembler;
  • ARM disassembler;
  • Device file uploading and downloading;
  • Built-in GDB and LLDB;
  • Support for memory breakpoint, software breakpoint, conditional breakpoint;
  • Support for multi-threaded debugging;
  • Support for assembly code level file patching.

Download GikDbg

In this tutorial we will describe how to use the debugger gikdbg iOS App, App calculator explain our system as an example to explain the operation and Step by step, as well as some notes here.

 

Step 0. Front Description

 

Mobile client: iPhone 5, iOS 7.0.4, gikir_iserver v1.1.build140520.1;
PC side: ParallelDesktop virtual machine, Windows 8.0, gikdbg v1.1.build140520.1; 

 

Step 1. Connect the device.

Click on the icon for the phone side gikir_iserver run the service program, PC-side execution iDebug / Device / Login (USB) menu, get the following output shows a successful connection:
app-connect-300x9.jpg

If the situation can not connect appears in this step, please check them one by one:

1) Is there a process before lldb.exe left hand to kill and then restart gikdbg connection;
2) whether the 6080 port gikir_iserver used was left before gikir_iserver_root or / bin / sh process takes manually kill or restart the device and then restart gikir_iserver;
3) Are there other programs that use the Apple USB drive services and gikdbg conflicts, such procedures manual to kill and then restart gikdbg connection.

After the connection is successful, we can choose a different debug mode by iDebug / Option / Debugger, their characteristics are as follows:

GDB mode - debugging process equipment on 32 main thread or when debugging is recommended to use the specified function, the process of debugging symbols provided by gikdbg;
LLDB mode - recommended depth debugging process, this model is loaded for a long time, LLDB can analyze the information it needs some symbols, symbolic debugging process by gikdbg and lldb;
LLDB FAST mode - when the confirmatory debugging recommended, this mode load time is short, the process of debugging symbols provided by gikdbg. This mode is increased relative to the GDB mode debugging 32 64 equipment and multi-threaded code debugging features.

 

Step 2. Select the App Process
In iDebug / File / Attach menu pop-up window in the process list to find the calculator process:
app-proclist-300x193.jpg
Double-click or click Attach complete step process of selection;

 

Step 3. determine the patch operation
If this is the first time to debug the App, the confirmation dialog box will pop up as follows:
app-patch-300x173.jpg

Patch App for initial commissioning of conduct are:
1) Delete MH_PIE logo to process each time you load the base is fixed;
2) Record the UUID value of App;
3) If it is FAT formatted App disabled lowest and the highest schema version;
4) If it is then decrypt the encrypted App App;
5) into debugging aids dynamic library gikir_iserver_injecter.dylib;

You can patch above the list of processes and the console menu program list, right-of unpatch removed App restored to its original state before the patch.
If you choose to cancel will not be able to debug App, if you choose determines the implementation of the operation and return the entire patch App folder to the $ (GIKDBG) / iosapp / encrypted directory, decrypted App executable file back to $ (GIKDBG) / iosapp / decrypted directory. At this point can be decrypted executable statically analyzed by ida or gikdbg.
After the patch properly executed will be prompted to restart the App:
app-patch-ok-300x215.jpg
 
After the restart App repeat Step2 enter Step4.

 

Step 4. Mount App Process
app-attaching-300x170.jpg

This step GDB and LLDB FAST mode will be faster, LLDB mode will wait about 2-10 minutes, according to the size and complexity of the App;
If a long time (5 minutes) to wait for the main window yet into the CPU, you can manually cancel the wait.

 

Step 5. The main window into the Cpu

 

All goes as follows CPU will enter the main interface:
app-cpumain-300x190.jpg

 

Step 6. Select the main module
Execution iDebug / View / Module get the following window:
app-modlist-300x147.jpg
Select the main module and then double jump to the main module CPU window.

 

Step 7. Check the main module information
In the main module CPU to perform the disassembly listing window Right View object and View mach-o can be static data analysis:
app-maininfo-300x212.jpg

 

Step 8. breakpoint debugging
F2 function found under the rear break and we are interested in running, hit the breakpoint interface:
app-hitbkpt-300x170.jpg
This time you can debug function that we are interested in, and have the following precautions:
GDB mode - likely F7 F8 will always remain in the breakpoint address, this is the GDB Bug, you can cancel the breakpoint and then F7 F8 resolved;
LLDB mode --F8 can not single step through the function call, this is LLDB the Bug, can be resolved through F4 to the specified address.

 

Step 9. Check objc message call chain
If we want to see the news of the call chain App can be realized by $ detectobjc command:
app-detectobjc-300x189.jpg
This feature is not available in LLDB FAST mode. If you want to customize the output, Hook can be injected into the process of debugging functions in a dynamic library gikir_iserver_injecter.dylib:
int filter_objc_message (const char * cls, const char * sel);
cls is the class name, sel is the message name, return 0 printout, return a representation ignored;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Hero Wars: Alliance v1.205.000 +2 Cheats
      Modded/Hacked App: Hero Wars - Fantasy World By Nexters Global LTD
      Bundle ID: com.nexters.titanhunters
      iTunes Store Link: https://apps.apple.com/us/app/hero-wars-fantasy-world/id1158967485?uo=4


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


      Hack Features:
      - x dmg
      - x def


      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 Filza or iFile, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will need to press on 'Install' or 'Installer' from the options on your screen.
      STEP 5: Let Filza / iFile finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: 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 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 & 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, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 348 replies
    • Heroes Charge v2.1.414 +2 Cheats
      Modded/Hacked App: Heroes Charge By uCool, Inc.
      Bundle ID: com.ucool.hero
      iTunes Store Link: https://apps.apple.com/us/app/heroes-charge/id900313219?uo=4


      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 dmg
      - x def




      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:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 390 replies
    • Rival Kingdoms: Endless Night v2.2.12 +3 Cheats
      Modded/Hacked App: Rival Kingdoms: Endless Night By Space Ape Ltd
      Bundle ID: com.spaceapegames.rivalkingdoms
      iTunes Store Link: https://apps.apple.com/us/app/rival-kingdoms-endless-night/id910492448?uo=4

      Hack Features:
      - Unlimited Energy


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 104 replies
    • キン肉マン 極・タッグ乱舞 Kinnikuman Extreme v1.0.7 +2 Cheats
      Modded/Hacked App: キン肉マン 極・タッグ乱舞 By COPRO Co., Ltd.
      Bundle ID: jp.kcopro.kin001
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%82%AD%E3%83%B3%E8%82%89%E3%83%9E%E3%83%B3-%E6%A5%B5-%E3%82%BF%E3%83%83%E3%82%B0%E4%B9%B1%E8%88%9E/id1623345808?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


      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
        • Like
      • 4 replies
    • Goddess Of Victory : Nikke Taiwan - 勝利女神:妮姬 v122.8(20) +2 Cheats
      Modded/Hacked App: 勝利女神:妮姬 By Gamamobi HK Co., Limited
      Bundle ID: com.gamamobi.nikke
      iTunes Store Link: https://apps.apple.com/tw/app/%E5%8B%9D%E5%88%A9%E5%A5%B3%E7%A5%9E-%E5%A6%AE%E5%A7%AC/id1630883882?uo=4


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


      Hack Features:
      - Unlimited Ammo
      - Jailbreak Detection Removed


      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
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 152 replies
    • My Heroes Dungeon China - 我的勇者 v2.20.8 +3 Cheats
      Modded/Hacked App: 我的勇者 By Shenzhen Moli Shuyu Network Technology Co., Ltd.
      Bundle ID: com.rsg.MyheroApp
      iTunes Store Link: https://apps.apple.com/cn/app/%E6%88%91%E7%9A%84%E5%8B%87%E8%80%85/id1458703401?uo=4


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


      Hack Features:
      - x dmg
      - x def


      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
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 297 replies
    • Raising Poseidon Cheats v1.2.94 +1
      Modded/Hacked App: 포세이돈키우기 By kim myungjun
      Bundle ID: com.mouseduck.seawar
      iTunes Store Link: https://apps.apple.com/kr/app/%ED%8F%AC%EC%84%B8%EC%9D%B4%EB%8F%88%ED%82%A4%EC%9A%B0%EA%B8%B0/id1614789798?uo=4


      Hack Features:
      - Infinite Currencies


      iOS Hack Download Link: https://iosgods.com/topic/169377-raising-poseidon-%ED%8F%AC%EC%84%B8%EC%9D%B4%EB%8F%88%ED%82%A4%EC%9A%B0%EA%B8%B0-cheats-v1200-1/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 131 replies
    • Demon Hunter Idle Cheats v1.0.4 +3
      Modded/Hacked App: Demon Hunter Idle By MOBIRIX
      Bundle ID: com.mobirix.mbpdh
      iTunes Store Link: https://apps.apple.com/us/app/demon-hunter-idle/id6472879858?uo=4


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

      *NOTE: Do not abuse or buy ViP for just this cheat


      iOS Hack Download Link: https://iosgods.com/topic/183710-demon-hunter-idle-cheats-v102-3/
        • Winner
        • Like
      • 37 replies
    • [ ReDive TW ] 超異域公主連結!Re:Dive Cheats v4.6.0 +3
      Modded/Hacked App: 超異域公主連結!Re:Dive by So-net Entertainment Taiwan Limited
      Bundle ID: tw.sonet.princessconnect
      iTunes Store Link: https://apps.apple.com/tw/app/%E8%B6%85%E7%95%B0%E5%9F%9F%E5%85%AC%E4%B8%BB%E9%80%A3%E7%B5%90-re-dive/id1390473317?uo=4&at=1010lce4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skill


      iOS Hack Download Link: https://iosgods.com/topic/134431-%E8%B6%85%E7%95%B0%E5%9F%9F%E5%85%AC%E4%B8%BB%E9%80%A3%E7%B5%90%EF%BC%81redive-cheats-v220-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 241 replies
    • Otherworld Three Kingdoms Cheats v1.0.4 +3
      Modded/Hacked App: Otherworld Three Kingdoms By SuperPlanet corp.
      Bundle ID: com.superplanet.samworld
      iTunes Store Link: https://apps.apple.com/us/app/otherworld-three-kingdoms/id6496345383?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skills


      iOS Hack Download Link: https://iosgods.com/topic/183743-otherworld-three-kingdoms-cheats-v103-3/
        • Thanks
        • Winner
        • Like
      • 32 replies
    • Monster Legends: Collect all Cheats v17.2.5 +8
      Modded/Hacked App: Monster Legends: Breeding RPG By Socialpoint
      Bundle ID: es.socialpoint.MonsterCity
      iTunes Store Link: https://apps.apple.com/us/app/monster-legends-breeding-rpg/id653508448?uo=4


      Hack Features:
      - 1 Hit Kill
      - Skip Enemy Turn
      - Insane Score (Always 3 Stars)
      - No Skill Cost
      - Auto Win


      iOS Hack Download Link: https://iosgods.com/topic/176914-monster-legends-collect-all-v1632-5-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 176 replies
    • GODDESS OF VICTORY: NIKKE v122.8(20) +5 Cheats
      Modded/Hacked App: GODDESS OF VICTORY: NIKKE By PROXIMA BETA PTE.LIMITED
      Bundle ID: com.proximabeta.nikke
      iTunes Store Link: https://apps.apple.com/us/app/goddess-of-victory-nikke/id1585915174?uo=4


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


      Hack Features:
      - God Mode
      - Unlimited Ammo
      - JB Check Removed


      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
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 303 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