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
https://iosgods.com/topic/2754-tutorial-how-to-use-gikdbg-lldb-for-windows/
Share on other sites

Wow u r good tut writer .. Good job

He just translated this from Chinese to English via Google Translate and just slammed it on the forum. I did some cleaning up and improved it. -_-

Archived

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

  • Our picks

    • Summoners War Cheats v8.6.1 +7
      Hacked App: Summoners War By Com2uS Corp.
      iTunes Link: https://itunes.apple.com/us/app/summoners-war/id852912420?mt=8&uo=4&at=1010lce4
      Bundle ID: com.com2us.smon.normal.freefull.apple.kr.ios.universal

      Hack Features:
      - Damage Multiplier 
      - Godmode
      - Monster Count Unlink
      - Max Accuracy
      - No Skill Cooldown
      - First Turn
      - Build buildings without having required level
      - Antiban
      • 6,823 replies
    • Anna's Monster Farm : BEGINS Cheats v1.7.0 +3
      Modded/Hacked App: Anna's Monster Farm : BEGINS By Dalmoon Co.,Ltd.
      Bundle ID: com.zzoo.ios.monsterfarm
      iTunes Store Link: https://apps.apple.com/us/app/annas-monster-farm-begins/id6482291449?uo=4
       

      Hack Features

      - Freeze Currencies
      - God Mode
      - Multiply Attack


      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/


      iOS Hack Download Link https://iosgods.com/topic/191165-annas-monster-farm-begins-cheats-v170-3/
      • 12 replies
    • Mr Hero - Idle RPG Cheats v1.91.1 +3
      Modded/Hacked App: Mr Hero - Idle RPG By MONSTER PLANET Corp.
      Bundle ID: com.MonsterPlanet.MrHero
      iTunes Store Link: https://apps.apple.com/us/app/mr-hero-idle-rpg/id1580319643?uo=4


      Hack Features:
      - Multiply Attack (PvE)
      - God Mode (PvP) => Always Win
      - Freeze (Some) Currencies (Gem may not work, can't fully tested)

      DO NOT ONLY BUY VIP FOR THIS AND EXPECT IT CAN BE UPDATED


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
       


      iOS Hack Download Link: https://iosgods.com/topic/190640-mr-hero-idle-rpg-cheats-v1900-3/
      • 24 replies
    • Mini Kitchen Chef v3.1 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mini Kitchen Chef By JOHANNES DIMITRIS TSOUCHLOS
      Bundle ID: com.tsepigames.minikitchen
      iTunes Store Link: https://apps.apple.com/us/app/mini-kitchen-chef/id6738204646?uo=4

       


      Hack Features

      - Unlimited Cash
      - Unlimited Plates
      - Unlimited Stars
      - No Burning


      Jailbreak required iOS hacks: [Mod Menu Hack] Mini Kitchen Chef v3.0 +4 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 2 replies
    • Mini Kitchen Chef v3.1 +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mini Kitchen Chef By JOHANNES DIMITRIS TSOUCHLOS
      Bundle ID: com.tsepigames.minikitchen
      iTunes Store Link: https://apps.apple.com/us/app/mini-kitchen-chef/id6738204646?uo=4

       
       

      Hack Features

      - Unlimited Cash
      - Unlimited Plates
      - Unlimited Stars
      - No Burning


      For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] Mini Kitchen Chef v3.0 +4 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 2 replies
    • Airport Simulator: Plane City v1.03.1300 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Airport Simulator: Plane City By Playrion SARL
      Bundle ID: com.playrion.airportmanager
      iTunes Store Link: https://apps.apple.com/us/app/airport-simulator-plane-city/id1572244031?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:
      - Unlimited Currencies -> Earn or spend some. Use Sky Coins to buy Cash.


      Jailbreak required hack(s): [Mod Menu Hack] Airport Simulator: First Class v1.01.0202 +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/
        • Winner
        • Like
      • 345 replies
    • Airport Simulator: Plane City v1.03.1300 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Airport Simulator: Plane City By Playrion SARL
      Bundle ID: com.playrion.airportmanager
      iTunes Store Link: https://apps.apple.com/us/app/airport-simulator-plane-city/id1572244031?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 Currencies -> Earn or spend some. Use Sky Coins to buy Cash.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Airport Simulator: First Class v1.01.0202 +1++ 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/
        • Thanks
        • Like
      • 242 replies
    • Aqua Match v0.191.0 +2 Jailed Cheats [ Unlimited Diamonds ]
      Modded/Hacked App: Aqua Match By PLR Worldwide Sales Limited
      Bundle ID: com.playrix.aquamatch
      iTunes Store Link: https://apps.apple.com/us/app/aqua-match/id6502511364?uo=4

       


      Hack Features

      - Freeze Moves
      - Unlimited Diamonds -> This will ban you from Clans so do not use if you wish to use that. Go into a game, use a few moves and win. Do not use with Freeze Moves.


      Jailbreak required iOS hacks: [Mod Menu Hack] Aqua Match v0.191.0 +2 Cheats [ Unlimited Diamonds ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 0 replies
    • Aqua Match v0.191.0 +2 Cheats [ Unlimited Diamonds ]
      Modded/Hacked App: Aqua Match By PLR Worldwide Sales Limited
      Bundle ID: com.playrix.aquamatch
      iTunes Store Link: https://apps.apple.com/us/app/aqua-match/id6502511364?uo=4

       


      Hack Features

      - Freeze Moves
      - Unlimited Diamonds -> This will ban you from Clans so do not use if you wish to use that. Go into a game, use a few moves and win. Do not use with Freeze Moves.


      For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] Aqua Match v0.191.0 +2 Jailed Cheats [ Unlimited Diamonds ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 1 reply
    • Candy Crush Solitaire v0.4.1451 +18 Jailed Cheats [ Game Breaking ]
      Modded/Hacked App: Candy Crush Solitaire By King.com Limited
      Bundle ID: com.midasplayer.apps.candysolitaire
      iTunes Store Link: https://apps.apple.com/us/app/candy-crush-solitaire/id6474685626?uo=4


      Hack Features:
      - Unlimited Free Gifts -> Head into the Shop to claim the free gift over & over.
      - Season Pass Purchased

      VIP
      - Add Coins*
      - Add Energy*
      - Add Colour Bomb Boosters*
      - Add UFO Boosters*
      - Add Wildcards*
      - Add Undo's*
      - Add Extra Moves*
      - Add Free Entries*
      - Add Lollipops*
      - Add Streak Slot Booster*
      - Next Level*
      - Complete Postcard*
      - Add Stars To Leaderboard*
      - Add Album Card*
      - Complete Season Pass*

      * Head into Settings and toggle the ? button. Only enable 1 feature at a time.


      Jailbreak required hack(s): [Mod Menu Hack] Candy Crush Solitaire v0.3.5204 +18 Cheats [ Game Breaking ] - 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/
      • 12 replies
    • Candy Crush Solitaire v0.4.1451 +18 Cheats [ Game Breaking ]
      Modded/Hacked App: Candy Crush Solitaire By King.com Limited
      Bundle ID: com.midasplayer.apps.candysolitaire
      iTunes Store Link: https://apps.apple.com/us/app/candy-crush-solitaire/id6474685626?uo=4


      Hack Features:
      - Unlimited Free Gifts -> Head into the Shop to claim the free gift over & over.
      - Season Pass Purchased

      VIP
      - Add Coins*
      - Add Energy*
      - Add Colour Bomb Boosters*
      - Add UFO Boosters*
      - Add Wildcards*
      - Add Undo's*
      - Add Extra Moves*
      - Add Free Entries*
      - Add Lollipops*
      - Add Streak Slot Booster*
      - Next Level*
      - Complete Postcard*
      - Add Stars To Leaderboard*
      - Add Album Card*
      - Complete Season Pass*
      - Add Digging Spoons*

      * Only enable 1 feature at a time.


      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/
        • Haha
      • 32 replies
    • High Seas Hero Cheats v1.0.14 +4
      Modded/Hacked App: High Seas Hero By Century Games Pte. Ltd.
      Bundle ID: com.wwv.global
      iTunes Store Link: https://apps.apple.com/us/app/high-seas-hero/id6621220868?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
      - One Hit Kill


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
       


      iOS Hack Download Link: https://iosgods.com/topic/190961-high-seas-hero-cheats-v1010-4/
      • 54 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