Jump to content

Unity Il2cppdumper for Hopper Disassembler on macOS


13 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
3 hours ago, Ted2 said:

Happy Lets Go GIF by NHL

:hug:Good people make good stuff...

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

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

    • Little Kitty, Big City +1 Jailed Cheat [ Full Game Unlocked ]
      Modded/Hacked App: Little Kitty, Big City By Double Dagger Studio, LTD
      Bundle ID: com.doubledaggerstudio.littlekittybigcity
      App Store Link: https://apps.apple.com/us/app/little-kitty-big-city/id6760796215?uo=4

       


      🤩 Hack Features

      -- Full Game Unlocked
      • 0 replies
    • MAke Drama : MAD +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: MAke Drama : MAD By Wemade Connect Co., Ltd.
      Bundle ID: com.wemadeconnect.ios.makedrama
      App Store Link: https://apps.apple.com/us/app/make-drama-mad/id6757506278?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Winner
        • Like
      • 9 replies
    • ANOTHER EDEN Global +7 Cheats
      Mod APK Game Name: ANOTHER EDEN By WFS, Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/search?q=ANOTHER EDEN

       

      🤩 Hack Features

      - Damage Multiplier
      - Never Die
      - Unlimited MP
      - Battle EXP Multiplier
      - Currency Multiplier
      - Pick Up Items Multiplier
      - Fishing Rod Fast Level

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      DDownload via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Agree
        • Winner
      • 2 replies
    • Neo Monsters +6 Cheats
      Mod APK Game Name: Neo Monsters By ZigZaGame Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.pockettrend.neomonsters

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Capture 100%
      - Unlimited Team Cost
      - Trainig To Max Level
      - Run = Win + Auto Capture

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Winner
        • Like
      • 1 reply
    • On Raft v1.0.0 [ +3 Cheats ] Currency Multiplier
      Modded/Hacked App: On Raft By 24 HIT Riga SIA
      Bundle ID: com.on.raft
      App Store Link: https://apps.apple.com/us/app/on-raft/id6760892302?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Currency Multiplier
      - Resources Multiplier
      - Debug Menu
        • Winner
      • 3 replies
    • On Raft v1.0.0 [ +3 Jailed ] Currency Multiplier
      Modded/Hacked App: On Raft By 24 HIT Riga SIA
      Bundle ID: com.on.raft
      App Store Link: https://apps.apple.com/us/app/on-raft/id6760892302?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Currency Multiplier
      - Resources Multiplier
      - Debug Menu
        • Winner
        • Like
      • 2 replies
    • Artillery: Fight For America v1.4.1 [ +3 Cheats ] Currency ADD
      Modded/Hacked App: Artillery: Fight For America By Dats Games LTD
      Bundle ID: dats.games.artillerymasterffa
      App Store Link: https://apps.apple.com/us/app/artillery-fight-for-america/id6503918235?uo=4

      🤩 Hack Features

      - ADS NO
      - Currency ADD
      - Currency Multiplier
      • 0 replies
    • Artillery: Fight For America v1.4.1 [ +3 Jailed ] Currency ADD
      Modded/Hacked App: Artillery: Fight For America By Dats Games LTD
      Bundle ID: dats.games.artillerymasterffa
      App Store Link: https://apps.apple.com/us/app/artillery-fight-for-america/id6503918235?uo=4

      🤩 Hack Features

      - ADS NO
      - Currency ADD
      - Currency Multiplier
      • 0 replies
    • Evolve and Win v0.3.2 [ +10 Cheats ] Debug Menu
      Modded/Hacked App: Evolve and Win By Sidra Sadeed
      Bundle ID: com.ss.apes.evolve.win
      App Store Link: https://apps.apple.com/us/app/evolve-and-win/id6772149297?uo=4

      🤩 Hack Features

      - Debug Menu
      • 0 replies
    • Evolve and Win v0.3.2 [ +10 Jailed ] Debug Menu
      Modded/Hacked App: Evolve and Win By Sidra Sadeed
      Bundle ID: com.ss.apes.evolve.win
      App Store Link: https://apps.apple.com/us/app/evolve-and-win/id6772149297?uo=4

      🤩 Hack Features

      - Debug Menu
        • Like
      • 0 replies
    • Last Combat: Z Shooter v1.0.2 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Last Combat: Z Shooter By PIXEL KING PTE. LTD.
      Bundle ID: com.sg.lastaura.army.zombie.shooter
      App Store Link: https://apps.apple.com/us/app/last-combat-z-shooter/id6812733413?uo=4

      🤩 Hack Features

      - Auto Win
      - Unlimited Gems
      - Unlimited Coins
      - ADD Gems
      - ADD Coins
      - Higher Damage
      - Damage Multiplier
        • Like
      • 2 replies
    • Last Combat: Z Shooter v1.0.2 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Last Combat: Z Shooter By PIXEL KING PTE. LTD.
      Bundle ID: com.sg.lastaura.army.zombie.shooter
      App Store Link: https://apps.apple.com/us/app/last-combat-z-shooter/id6812733413?uo=4

      🤩 Hack Features

      - Auto Win
      - Unlimited Gems
      - Unlimited Coins
      - ADD Gems
      - ADD Coins
      - Higher Damage
      - Damage Multiplier
      • 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