Jump to content

4 posts in this topic

Recommended Posts

Posted

Hello everyone! I am having an issue when analyzing the Mach-O executable for the IOS Application: Subway Surfers inside of Ghidra. I will lay out the thread with the steps I have successfully taken, and outline where the issue that I am facing occurs. Any insight into why this issue could be occurring would be greatly appreciated, I'm here to learn, and if there are things that I am doing incorrectly, or could be doing differently, please let me know.

 

Steps Taken So Far:

  1. Extracted the IPA File:

    • I have successfully extracted the Subway Surfers IPA to locate the key files, including the Mach-O executable and global-metadata.dat.
  2. Confirmed Global-Metadata.dat:

    • Located the global-metadata.dat file in the Metadata folder, which is crucial for dumping the IL2CPP structures.
  3. Dumped IL2CPP:

    • Used IL2CPP Dumper on both the Mach-O executable and global-metadata.dat to extract the dump.cs and script.json files.
    • These files include critical information about game methods, classes, and offsets, including the ColliderEnable property.
  4. Imported the Mach-O Executable into Ghidra:

    • I have imported the Subway Surfers Mach-O executable into Ghidra for analysis. I set the processor language to AARCH64: AppleSilicon (default) and used the Mac OS X Mach-O format for import.
  5. Attempted to Locate the Function Offset:

    • Based on the dump.cs output, I attempted to find the ColliderEnable function using its RVA (Relative Virtual Address) from IL2CPP Dumper:
      • get_ColliderEnable: RVA = 0x29E60
      • set_ColliderEnable: RVA = 0x29E80
    • I calculated the absolute memory address by adding the base address of 0x100000000 (as determined from the Memory Map in Ghidra) to these RVAs:
      • get_ColliderEnable: 0x100029E60
      • set_ColliderEnable: 0x100029E80
    • However, when using Ghidra’s “Go To” function to navigate to these addresses, we consistently receive a “no results” error.
  6. Reanalyzed the Mach-O Executable:

    • I reanalyzed the file in Ghidra, enabling all necessary analysis passes (function identification, instruction decoding, etc.).
    • I also attempted to search for function names and program text (e.g., ColliderEnable) manually, but the function still could not be found.
  7. Encountered Swift Demangler Issues:

    • Ghidra reported an error about missing Swift demangling tools, leading to the possibility that Ghidra is struggling with sections of the binary related to Swift. I considered that Swift dependencies might interfere with the analysis process and installed Swift onto my machine.

The Issue I am Facing in Ghidra:

  • Despite importing the Mach-O binary correctly and reanalyzing the file, Ghidra is unable to locate the function offsets or names for ColliderEnable (or other related methods) based on the RVAs provided by IL2CPP Dumper.
  • I have already verified that the base address and RVA calculation are correct (using the memory map), but Ghidra still returns “no results” when navigating to the calculated addresses.
  • The Swift demangler error may be preventing full analysis or proper resolution of some sections of the binary, but the specific connection to this issue is unclear.

What I Need Help With:

  • Understanding why Ghidra can’t find the function offset even though the base address and RVAs seem correct.
  • Determining if the Swift-related errors could be affecting our ability to locate the function.
  • Identifying any potential additional steps or configurations in Ghidra to resolve this issue (or if another tool might handle this better - I don't have IDA).

I appreciate any insight into why this issue could be occurring. If there is something that I am overlooking, I would greatly appreciate any additional information so that I can learn how to resolve this.

Posted

You do not need to add 0x1000000 if the executable is the Frameworks

Just go to that RVA offset

  • Like 1
Posted (edited)
6 minutes ago, Laxus said:

You do not need to add 0x1000000 if the executable is the Frameworks

Just go to that RVA offset

Interesting, I wasn't aware of this. I will give this a try. Thanks.

Edit: The issue still persists, I could only imagine that I am somehow importing the Mach-O for analyzation incorrectly.

Updated by Game Sphere
Update Result (Issue Persistence)
Posted

Bumping this as I still haven't been able to solve this issue. I'm a bit dumbfounded. For anyone that has read my original post, I have also tried importing the Mach-O Executable into Hopper, Ghidra, and Cutter. All of which I am having the same issues with. It leaves me with the thoughts that I must be importing incorrectly, or something along those lines, but any input would be appreciated as I'm stumped.

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

    • Metal Slug Rush v1.0.0 [ +9 APK MOD ] Currency Max
      Mod APK Game Name: Metal Slug Rush
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.ringgames.msm

      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Silver keys
      - Unlimited Golden Keys
      - Unlimited Special Keys
      - Unlimited Blueprint
      - Unlimited Token
      - Unlimited Ticket +3
      • 1 reply
    • Metal Slug Rush v1.0.0 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Metal Slug Rush By REVIVECONTENTS CO.,LTD.
      Bundle ID: com.ringgames.msm
      App Store Link: https://apps.apple.com/us/app/metal-slug-rush/id6775727338?uo=4

      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Silver keys
      - Unlimited Golden Keys
      - Unlimited Special Keys
      - Unlimited Blueprint
      - Unlimited Token
      - Unlimited Ticket +3
      • 2 replies
    • Metal Slug Rush v1.0.0 [ +9 jailed ] Currency Max
      Modded/Hacked App: Metal Slug Rush By REVIVECONTENTS CO.,LTD.
      Bundle ID: com.ringgames.msm
      App Store Link: https://apps.apple.com/us/app/metal-slug-rush/id6775727338?uo=4

      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Silver keys
      - Unlimited Golden Keys
      - Unlimited Special Keys
      - Unlimited Blueprint
      - Unlimited Token
      - Unlimited Ticket +3
      • 2 replies
    • Pixel Mage: Idle RPG +10 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Pixel Mage: Idle RPG By StreetComplete
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.streetcomplete.pixelmagician

       

      🤩 Hack Features

      - Damage Multiplier
      - Attack/Move Speed Multiplier
      - Freeze Gold
      - Unlimited Gold -> Will increase instead of decrease.
      - Freeze Blue Diamonds
      - Unlimited Blue Diamonds -> Will increase instead of decrease.
      - Freeze Red Diamonds
      - Unlimited Red Diamonds -> Will increase instead of decrease.
      - Freeze Purple Diamonds
      - Unlimited Purple Diamonds -> Will increase instead of decrease.
      • 0 replies
    • Pixel Mage: Idle RPG +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Pixel Mage: Idle RPG By YONGJIN JO
      Bundle ID: com.streetcomplete.pixelmagician
      App Store Link: https://apps.apple.com/us/app/pixel-mage-idle-rpg/id6741889270?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Attack/Move Speed Multiplier
      - Freeze Gold
      - Unlimited Gold -> Will increase instead of decrease.
      - Freeze Blue Diamonds
      - Unlimited Blue Diamonds -> Will increase instead of decrease.
      - Freeze Red Diamonds
      - Unlimited Red Diamonds -> Will increase instead of decrease.
      - Freeze Purple Diamonds
      - Unlimited Purple Diamonds -> Will increase instead of decrease.
      • 6 replies
    • Toy Brawlers: Arena Fight +3 Mods [ Damage & Defence ]
      Mod APK Game Name: Toy Brawlers: Arena Fight By Studıo Gamebıt Yazılım Ve Teknoloji Ltd. Şti.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.studiogamebit.toybrawlers

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 0 replies
    • Bullet Boy v41 [ +1 Cheats ] Gems Max
      Modded/Hacked App: Bullet Boy By Outbox SRL
      Bundle ID: com.pomelogames.BulletBoy
      App Store Link: https://apps.apple.com/us/app/bullet-boy/id899606169?uo=4

      🤩 Hack Features

      - Gems Max
      • 0 replies
    • Bullet Boy v41 [ +1 Jailed ] Gems Max
      Modded/Hacked App: Bullet Boy By Outbox SRL
      Bundle ID: com.pomelogames.BulletBoy
      App Store Link: https://apps.apple.com/us/app/bullet-boy/id899606169?uo=4

      🤩 Hack Features

      - Gems Max
      • 2 replies
    • AmaZeus: Merge & Shoot v1.4.37 [ +6 Jailed ] ATK MAX
      Modded/Hacked App: AmaZeus: Merge & Shoot By Geisha Tokyo Inc.
      Bundle ID: com.merge.shooter
      App Store Link: https://apps.apple.com/us/app/amazeus-merge-shoot/id6742771024?uo=4

      🤩 Hack Features

      - Energy Max
      - Always Last Wave
      - AKF Rewards
      Hero Stats
      - HP Freeze
      - ATK MAX
      Enemy Stats
      - ATK 0
      • 2 replies
    • AmaZeus: Merge & Shoot v1.4.37 [ +6 Cheats ] ATK MAX
      Modded/Hacked App: AmaZeus: Merge & Shoot By Geisha Tokyo Inc.
      Bundle ID: com.merge.shooter
      App Store Link: https://apps.apple.com/us/app/amazeus-merge-shoot/id6742771024?uo=4
      🤩 Hack Features

      - Energy Max
      - Always Last Wave
      - AKF Rewards
      Hero Stats
      - HP Freeze
      - ATK MAX
      Enemy Stats
      - ATK 0
      • 3 replies
    • Mini DAYZ 2 +4 Jailed Cheats [ ESP Boxes, Lines ]
      Modded/Hacked App: Mini DAYZ 2 By Bohemia Interactive AS
      Bundle ID: com.bistudio.minidayz2
      App Store Link: https://apps.apple.com/us/app/mini-dayz-2/id1482111801?uo=4

       


      🤩 Hack Features

      - Ally ESP Boxes
      - Ally ESP Lines
      - Ally ESP Health
      - Ally ESP Distance
      - Enemy ESP Boxes
      - Enemy ESP Lines
      - Enemy ESP Health
      - Enemy ESP Distance
      • 7 replies
    • Haikyuu!! ( ハイキュー!! ) TOUCH AND CONNECT +4 Mods [ Auto Win ]
      Mod APK Game Name: ハイキュー!! TOUCH AND CONNECT By G Holdings co., ltd.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.gholdings.haicone

       

      🤩 Hack Features

      - Unlimited Score
      - Freeze Moves
      - Freeze In-Game Timer
      - Auto Win
      • 0 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