Jump to content

Ultimate Guide: Debugging iOS Games on iPhone with IDA Pro + debugserver


17 posts in this topic

Recommended Posts

Updated (edited)

   Here’s a simple step-by-step tutorial on how to attach any iOS game running on your iPhone directly to IDA Pro for live debugging

 

Spoiler

 

important first connect via putty from  2️⃣ Enable OpenSSH on Your iPhone

 

1️⃣ Create a Separate SSH Tunnel from CMD

Open Command Prompt on your PC and run:

ssh -L 1234:localhost:1234 [email protected]
p_35076cjdc1.png
 
Replace 192.168.100.14 with your iPhone’s Wi-Fi IP address and , Make sure your iPhone and PC are on the same Wi-Fi network
 

Example:

ssh -L 1234:localhost:1234 [email protected]
 
 

2️⃣ Enable OpenSSH on Your iPhone

  • Open 3uTools (64-bit) on your PC.

  • Go to Toolbox → Enable OpenSSH Tunnel

p_3507h86zu1.png

 

p_3507wxf3c1.png

 

 

 

3️⃣ Connect to iPhone via PuTTY

  • Open PuTTY.

  • Hostname: 127.0.0.1

  • Port: 23

  • Login with username: mobile

p_35076ngur1.png

 

p_3507vsqlp1.png

 

4️⃣ Find the Target Game’s PID

Once connected via PuTTY, launch the game on your iPhone and run on PuTTY :

ps -ax
 

Or search directly by game name 

Example:

ps -ax | grep "hcrwc iOS.app" | grep -v grep

p_3507vfs8m1.png

Example output:
36589 ??  2:20.28 /var/containers/Bundle/Application/75DF6E3B-B832-437C-BC83-4E470BAFF99D/hcrwc iOS.app
 
Here, 36589 is the game’s PID
 

5️⃣ Attach debugserver to the Game

In PuTTY run:

debugserver '*:1234' --attach=36589

p_35078pagh1.png

 

6️⃣ Connect IDA Pro to Your iPhone

On your PC:

  1. Open IDA Pro.

  2. Go to DebuggerSelect debuggerRemote GDB debugger.

  3. Set:

    • Hostname: localhost

    • Port: 1234

  4. Click OK to connect

 

p_3507bls761.png

 

p_3507dnazw1.png

p_3507yazkd2.png

p_35073ns2m3.png

 

 

Once connected, IDA Pro will pull the symbols and live disassembly from your iPhone, allowing you to set breakpoints, trace memory, and fully control the game in real-time.

 

🎉 Congrats! You’ve successfully attached IDA Pro to an iOS game

 

 

 

@Lolite

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Updated by Lolite
  • Like 15
  • Winner 1
Posted

New guide!!!! This is awesome thank you PepeNote 

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