Jump to content

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


10 posts in this topic

Recommended Posts

Updated

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;

Posted

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. -_-

Posted (edited)

Is this working on 8.4?

 

edit: connects fine, but cant decrypt the binary most likely on 64 bit devices.

Updated by _Ekin_
Posted

not sure what to do the server on the device keeps crashing as soon as I open it is it because I'm on ios 9.3.3

 

I'm having the same issues, the server crashes on 9.0, is there a solution for this?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Baseball GOAT v3.0.31 [ +2 Cheats ] Energy Max
      Modded/Hacked App: Baseball GOAT By Red Falcon Games Limited
      Bundle ID: com.redfalcon.baseballgoat.ios
      App Store Link: https://apps.apple.com/us/app/baseball-goat/id6677019784?uo=4

      🤩 Hack Features

      - Unlimited Energy
      - ADS Pack Active / Rewards Free
      • 0 replies
    • Baseball GOAT v3.0.31 [ +2 Jailed ] Energy Max
      Modded/Hacked App: Baseball GOAT By Red Falcon Games Limited
      Bundle ID: com.redfalcon.baseballgoat.ios
      App Store Link: https://apps.apple.com/us/app/baseball-goat/id6677019784?uo=4

      🤩 Hack Features

      - Unlimited Energy
      - ADS Pack Active / Rewards Free
      • 0 replies
    • Baseball Rising Star v2.1.0 [ +15 Cheats ] Currency Max
      Modded/Hacked App: Baseball Rising Star By 军 赵
      Bundle ID: com.baseball.rising.star
      App Store Link: https://apps.apple.com/us/app/baseball-rising-star/id6743102148?uo=4

      🤩 Hack Features

      - Gems Freeze
      - Cash Freeze
      - Shard Freeze
      - Maintenance Oil Freeze
      - Talent Point Freeze
      - Energy Freeze
      - Reputation Freeze
      === VIP ===
      - ADS PACK / Active Rewards Free
      - Gems Unlimited
      - Cash Unlimited
      - Shard Unlimited
      - Maintenance Oil Unlimited
      - Talent Point Unlimited
      - Energy Unlimited
      - Reputation Unlimited
      • 1 reply
    • Baseball Rising Star v2.1.0 [ +15 Jailed ] Currency Max
      Modded/Hacked App: Baseball Rising Star By 军 赵
      Bundle ID: com.baseball.rising.star
      App Store Link: https://apps.apple.com/us/app/baseball-rising-star/id6743102148?uo=4

      🤩 Hack Features

      - Gems Freeze
      - Cash Freeze
      - Shard Freeze
      - Maintenance Oil Freeze
      - Talent Point Freeze
      - Energy Freeze
      - Reputation Freeze
      === VIP ===
      - ADS PACK / Active Rewards Free
      - Gems Unlimited
      - Cash Unlimited
      - Shard Unlimited
      - Maintenance Oil Unlimited
      - Talent Point Unlimited
      - Energy Unlimited
      - Reputation Unlimited
        • Like
      • 1 reply
    • Truckers of Europe 3 v0.70.64 Jailed Cheats +4
      Modded/Hacked App: Truckers of Europe 3 By Yalcin Senturk
      Bundle ID: com.WandaSoftware.TruckersofEurope3
      App Store Link: https://apps.apple.com/us/app/truckers-of-europe-3/id1630315603?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

      - Infinite Cash
      - Infinite Gold
      - No Ads
      - Trailers Purchased

       

      Jailbroken Hack: https://iosgods.com/topic/208041-truckers-of-europe-3-cheats-auto-update-4/

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/208040-truckers-of-europe-3-v07064-jailed-cheats-4/
        • Like
      • 0 replies
    • Shiba Wars: Goddess Link TD +3 Mods [ Damage & Defence ]
      Mod APK Game Name: Shiba Wars: Goddess Link TD By Shibamaru
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.shibamaru.shibawars

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Winner
        • Like
      • 1 reply
    • Shiba Wars: Tower Defense TD +3 Mods [ Damage & Defence ]
      Mod APK Game Name: Shiba Wars: Tower Defense TD By Shibamaru
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.Shibamaru.com.Shibamaru.GoddessDefense

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 0 replies
    • Shiba Wars: Tower Defense TD +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Shiba Wars: Tower Defense TD By Shibamaru, LLC
      Bundle ID: com.Shibamaru.GoddessDefense
      App Store Link: https://apps.apple.com/us/app/shiba-wars-tower-defense-td/id6474090746?uo=4

       

      🤩 Hack Features

      - Damage Multiplier 
      - Defence Multiplier
      - God Mode
        • Winner
        • Like
      • 3 replies
    • Shiba Wars: Goddess Link TD +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Shiba Wars: Goddess Link TD By Shibamaru, LLC
      Bundle ID: com.shibamaru.shibawars
      App Store Link: https://apps.apple.com/us/app/shiba-wars-goddess-link-td/id6752238059?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Like
      • 0 replies
    • Raising Constellation ( 성좌 키우기 ) +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: 성좌 키우기 By CodeDragon Co., LTD.
      Bundle ID: com.codedragon.starhunter
      App Store Link: https://apps.apple.com/kr/app/%EC%84%B1%EC%A2%8C-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6757176669?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Winner
        • Like
      • 7 replies
    • Ice Haven +2 Jailed Cheat
      Modded/Hacked App: Ice Haven By LEXIANGCO.,LIMITED
      Bundle ID: leyi.frozenislandpro
      App Store Link: https://apps.apple.com/us/app/ice-haven/id6758926494?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

      - Damage Multiplier
      - Defense Multiplier

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: 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 8: 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. 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 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
        • Winner
        • Like
      • 8 replies
    • Mybots: Mech Battle Arena +3 Jailed Cheats
      Modded/Hacked App: Mybots: Mech Battle Arena By BoomBit, Inc.
      Bundle ID: com.my.bots
      App Store Link: https://apps.apple.com/us/app/mybots-mech-battle-arena/id6749895995?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

      - Damage Multiplier
      - Defense Multiplier
      - Never Die

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: 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 8: 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. 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 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
        • Winner
        • Like
      • 6 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