Jump to content

Unity Il2cppdumper for Hopper Disassembler on macOS


12 posts in this topic

Recommended Posts

Updated (edited)

il2cppdumper Hopper Disassembler

 

Thanks to @Ted2 & il2cppdumper online, we can easily import il2cpp dumps (script.json) into Hopper Dissassembler just like we do in IDA using the following Python code:

# -*- coding: utf-8 -*-
import json

class LoadIl2cppDumperScript:
    def __init__(self):
        self.document = Document.getCurrentDocument()
        segments = self.document.getSegmentsList()
        self.starting_address = segments[0].getStartingAddress()
        
    def get_address(self, addr):
        return self.starting_address + addr
        
    def process_script(self, script_path):
        with open(script_path, 'r', encoding='utf-8') as file:
            data = json.load(file)

        if "ScriptMethod" in data:
            self.process_script_methods(data["ScriptMethod"])

        if "ScriptString" in data:
            self.process_script_strings(data["ScriptString"])

        if "ScriptMetadata" in data:
            self.process_script_metadata(data["ScriptMetadata"])

        if "ScriptMetadataMethod" in data:
            self.process_script_metadata_methods(data["ScriptMetadataMethod"])

        print("Script finished!")

    def replace_null_characters(self, string):
        return string.replace("\x00", "")

    def process_script_methods(self, script_methods):
        for script_method in script_methods:
            address = self.get_address(script_method["Address"])
            current_method_name = self.document.getNameAtAddress(address)
            self.document.setNameAtAddress(address, script_method["Name"])
            print(f"Renamed {current_method_name} at {address} to {script_method['Name']}")

    def process_script_strings(self, script_strings):
        for index, script_string in enumerate(script_strings, start=1):
            address = self.get_address(script_string["Address"])

            current_string_name = self.document.getNameAtAddress(address)
            new_string_name = f"StringLiteral_{index}"
            
            self.document.setNameAtAddress(address, new_string_name)
            print(f"Renamed {current_string_name} at {address} to {new_string_name}")

            segment = self.document.getSegmentAtAddress(address)
            if segment:
                inline_comment = self.replace_null_characters(script_string["Value"])
                segment.setInlineCommentAtAddress(address, inline_comment)
                print(f"Set inline comment at address {address} to {inline_comment}")

    def process_script_metadata(self, script_metadata):
        for meta in script_metadata:
            address = self.get_address(meta["Address"])
            self.document.setNameAtAddress(address, meta["Name"])
            print(f"Set name at address {address} to {meta['Name']}")

            segment = self.document.getSegmentAtAddress(address)
            if segment:
                inline_comment = self.replace_null_characters(meta["Name"])
                segment.setInlineCommentAtAddress(address, inline_comment)
                print(f"Set inline comment at address {address} to {inline_comment}")

    def process_script_metadata_methods(self, script_metadata_methods):
        for meta_method in script_metadata_methods:
            address = self.get_address(meta_method["Address"])
            self.document.setNameAtAddress(address, meta_method["Name"])
            print(f"Set name at address {address} to {meta_method['Name']}")

            # Set inline comments
            segment = self.document.getSegmentAtAddress(address)
            if segment:
                inline_comment = self.replace_null_characters(meta_method["Name"])
                segment.setInlineCommentAtAddress(address, inline_comment)
                print(f"Set inline comment at address {address} to {inline_comment}")

                inline_comment_method_address = '{0:X}'.format(self.get_address(meta_method["MethodAddress"]))
                segment.setInlineCommentAtAddress(address, inline_comment_method_address)
                print(f"Set inline comment at address {address} to {inline_comment_method_address}")

    def run(self):
        script_path = self.document.askFile("Choose the script.json from Il2cppdumper", "false", None)

        if not script_path:
            raise Exception("No file selected")
        
        self.process_script(script_path)


LoadIl2cppDumperScript().run()

 

 

Usage
Use il2cppdumper online to dump your Unity app.

PRO TIP You can drag and drop the Decrypted App Store IPA link into il2cppdumper online.

Download the resulting il2cppdumper archive and extract it so the script.json is available. Next open Hopper Disassembler with your executable loaded and go to Scripts > Open Script Editor... > + > Add the Python script above & Run. You can also rename () the newly created "New Script.py" to something like "Il2cppdumper Hopper.py" as it will be saved and appear in Hopper's Scripts menu anytime you need to use it.

Next you simply run the script you just created and select the script.json from il2cppdumper online when asked. 

That's it!

 

Thanks again to @Ted2 for the Hopper version of the il2cppdumper script! We'll be updating il2cppdumper online to include the Hopper version of the script inside the dump archive!

Updated by Rook
  • Like 1
  • Winner 2
  • Thanks 1
  • Haha 1
Posted
1 minute ago, Puddin said:

Is hopper better than IDA? 

IDA for free is not available on M1/M2/M3 macOS so Hopper is the only option unless you run Windows IDA through Parallels or Crossover.

They're both similar from what I can see.

Posted
2 minutes ago, Rook said:

IDA for free is not available on M1/M2/M3 macOS so Hopper is the only option unless you run Windows IDA through Parallels or Crossover.

They're both similar from what I can see.

Yeah I’ll just stick with Parallels and IDA. Thanks though! Plus it’s not keeping my hacking sh!t separate from my Mac xD 

  • Like 1
Posted

My girlfriend stopped letting me use her Mac once she found out what I was doing with it lol but I do have ida pro crack for windows if anyone would need it. Nice post btw this would be useful once I steal her Mac again and use it at work 

  • Rook changed the title to Unity Il2cppdumper for Hopper Disassembler on macOS

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Boomerang RPG 1st Anniversary! v2.0.3 +4 Jailed Cheats
      Modded/Hacked App: Boomerang RPG By SuperPlanet corp.
      Bundle ID: com.superplanet.boomerang
      iTunes Store Link: https://apps.apple.com/us/app/boomerang-rpg/id6472151756?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:
      - God mode
      - High damage
      - Fast attack
      • 58 replies
    • Boomerang RPG 1st Anniversary! v2.0.3 +4 Cheats
      Modded/Hacked App: Boomerang RPG By SuperPlanet corp.
      Bundle ID: com.superplanet.boomerang
      iTunes Store Link: https://apps.apple.com/us/app/boomerang-rpg/id6472151756?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:
      - God mode
      - Fast attack
      - High damage
      • 90 replies
    • Prince of Persia Lost Crown v1.0.0 +9 Cheats [ God / O-HK ]
      Modded/Hacked App: Prince of Persia Lost Crown By Ubisoft
      Bundle ID: com.ubisoft.princeofpersia.thelostcrown.mobile.action.adventure.platform
      iTunes Store Link: https://apps.apple.com/us/app/prince-of-persia-lost-crown/id6504011865?uo=4

       
       

      🤩 Hack Features

      - God Mode
      - One-Hit Kill -> Linked. Use with God Mode.
      -- Full Game Unlocked
      • 10 replies
    • Crashlands 2 v100.1.372 +2 Jailed Cheats [ One-Hit Kill ]
      Modded/Hacked App: Crashlands 2 By Butterscotch Shenanigans, Inc.
      Bundle ID: com.bscotch.crashlands2
      iTunes Store Link: https://apps.apple.com/us/app/crashlands-2/id1528199331?uo=4

       


      🤩 Hack Features

      - One-Hit Kill
      - No Skill Cooldown
      • 4 replies
    • Scolopendra v1.0.0 Debug Menu [+4 Cheats]
      Modded/Hacked App: Scolopendra By 24 HIT Riga SIA
      Bundle ID: com.game.scolopendra
      iTunes Store Link: https://apps.apple.com/us/app/scolopendra/id6742407695?uo=4



      🤩 Hack Features

      - Debug Menu (Enable and Debug Menu Will Appear)

      • 1 reply
    • Scolopendra v1.0.0 Debug Menu [+4 Jailed Cheats]
      Modded/Hacked App: Scolopendra By 24 HIT Riga SIA
      Bundle ID: com.game.scolopendra
      iTunes Store Link: https://apps.apple.com/us/app/scolopendra/id6742407695?uo=4



      🤩 Hack Features

      - Debug Menu (Enable and Debug Menu Will Appear)

      • 0 replies
    • Towers Survivors v0.1.1 [+3 Cheats]
      Modded/Hacked App: Towers Survivors By Martin Quinones
      Bundle ID: com.Pizia.Towers-Survivors
      iTunes Store Link: https://apps.apple.com/us/app/towers-survivors/id6738764422?uo=4


      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Will Always Increase)
      - Unlimited Energy (Will Always Increase)
      • 1 reply
    • Towers Survivors v0.1.1 [+3 Jailed Cheats]
      Modded/Hacked App: Towers Survivors By Martin Quinones
      Bundle ID: com.Pizia.Towers-Survivors
      iTunes Store Link: https://apps.apple.com/us/app/towers-survivors/id6738764422?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Will Always Increase)
      - Unlimited Energy (Will Always Increase)
      • 0 replies
    • Fun Run 3 - Multiplayer Games Cheats v4.47.1 +1
      Modded/Hacked App: Fun Run 3: Arena Running Game By Dirtybit
      Bundle ID: com.dirtybit.fra
      iTunes Store Link: https://itunes.apple.com/us/app/fun-run-3-arena-running-game/id1118878857?mt=8&uo=4&at=1010lce4


      Hack Features:
      - God Mode
       

      Hack Download Link: https://iosgods.com/topic/75790-arm64-fun-run-3-arena-running-game-cheats-v210-1/
      • 1,280 replies
    • Super Arrow Online Cheats v1.56.1 +3
      Modded/Hacked App: Super Arrow Idle By MOBIRIX
      Bundle ID: com.mobirix.sao
      iTunes Store Link: https://apps.apple.com/us/app/super-arrow-idle/id1635307668?uo=4


      Hack Features:
      - Infinite Currencies ( Read NOTE )
      - God Mode
      - Weak Enemies ( Enable before start )


      This cheat is fully tested on my device JB ( Odyssey/ Odsseyra1n/ Taurine). If your jailbreak is not supported you will get detection error and do not ask me. AGAIN DO NOT BUY VIP FOR JUST THIS CHEAT

      iOS Hack Download Link: https://iosgods.com/topic/167081-super-arrow-idle-cheats-v154-3/
      • 505 replies
    • My Talking Angela 2 Cheats v25.1.1 +2
      Modded/Hacked App: My Talking Angela 2 By Outfit7 Limited
      Bundle ID: com.outfit7.mytalkingangela2
      iTunes Store Link: https://apps.apple.com/us/app/my-talking-angela-2/id1536584509?uo=4


      Hack Features:
      - Infinite Currencies
      - No Ads


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/147072-my-talking-angela-2-v1013-jailed-cheats-2/


      iOS Hack Download Link: https://iosgods.com/topic/147070-my-talking-angela-2-cheats-all-versions-2/
      • 110 replies
    • My Talking Tom 2 Cheats v25.1.2 +2
      Modded/Hacked App: My Talking Tom 2 by Outfit7 Limited
      Bundle ID: com.outfit7.mytalkingtom2
      iTunes Store Link: https://itunes.apple.com/us/app/my-talking-tom-2/id1337578317?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Coins (Spend some/ Get some)
      - No Ads


      Hack Download Link: https://iosgods.com/topic/82755-arm64-my-talking-tom-2-cheats-v102002-1/
      • 711 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