Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

Perfare/Il2CppDumper

Security & Privacy

Dump and restore Unity il2cpp metadata into DLLs and reverse-engineering scripts for IDA, Ghidra and Binary Ninja.

9,696
1,985
C#
MIT
9 years old

What it does

Il2CppDumper is a reverse-engineering tool for Unity games built with the il2cpp scripting backend. Instead of the managed assemblies a Mono build ships, il2cpp compiles C# into native code and stores type and method metadata in global-metadata.dat. The tool parses that metadata together with the native binary and reconstructs enough of the class structure to make analysis practical.

It reads ELF, ELF64, Mach-O, PE, NSO and WASM binaries and targets Unity 5.3 through 2022.2. Outputs include a DummyDll folder of restored assemblies with method bodies missing but type information intact, a dump.cs summary controlled by the config.json switches, an il2cpp.h structure header, and script.json / stringliteral.json. Generated Python scripts apply the recovered names and structures inside IDA, Ghidra or Binary Ninja.

It is aimed at reverse engineers and modders who need to locate game logic, extract MonoBehaviour and MonoScript data, or navigate obfuscated il2cpp binaries.

Quick start

  1. Get an executable build — the AppVeyor artifacts page publishes build outputs.
  2. Locate the il2cpp executable and matching metadata. On PC this is usually GameAssembly.dll (or *Assembly.dll); on Android it is libil2cpp.so plus global-metadata.dat from the app's il2cpp data.
  3. Run interactively and follow the prompts:
Il2CppDumper.exe

Or pass the arguments directly:

Il2CppDumper.exe <executable-file> <global-metadata> <output-directory>
  1. The outputs are written to the chosen directory. Open DummyDll assemblies in dnSpy or ILSpy to browse types; load the target binary in IDA, Ghidra or Binary Ninja and run the matching generated script to import names and structures.

Configurable behavior lives in config.json: which fields go into dump.cs, whether to generate DLLs and scripts, adding metadata tokens, and version/pointer overrides such as ForceIl2CppVersion, ForceDump and NoRedirectedPointer for older or memory-dumped binaries.

Constraints

  • Corrupted or obfuscated global-metadata.dat falls outside the tool's scope; deobfuscating that file is not supported. For protected Android targets the README points to the companion project Zygisk-Il2CppDumper, which needs a rooted device.
  • Dumped libil2cpp.so files from memory may need ForceDump and NoRedirectedPointer set correctly, otherwise pointers are misread.
  • Older il2cpp versions can require forcing a specific parser version, which affects only the binary parser, not the metadata parser.
  • The restored DLLs contain no method bodies — they are for inspection and tooling, not for running or recompiling the game.
  • License is MIT.

HotRepo's take

With roughly 9.7k stars and 2k forks, Il2CppDumper has become the reference starting point for Unity il2cpp analysis, and its outputs feed other tools in the same workflow rather than standing alone. The design reflects that: half the feature set is generated scripts for IDA, Ghidra and Binary Ninja, and the README spends most of its space on error cases — invalid metadata, protected binaries, manual mode — which signals where users actually get stuck. No ranking or growth records are available for this repository on HotRepo, so this is a read of the project's documented scope rather than of its activity.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. cyberkaida/reverse-engineering-assistantGhidra extension exposing reverse-engineering tools to LLM clients through an MCP server, for interactive or headless binary analysis.Java934
  2. NationalSecurityAgency/ghidraAn NSA-built reverse engineering framework for disassembling and decompiling binaries when you need to understand code you cannot see.Java93,855
  3. HexRaysSA/ida-mcpOfficial MCP server that lets AI agents drive IDA Pro/idalib for reverse engineering and binary analysis.Python1,687
  4. bethington/ghidra-mcpBridges Ghidra to AI agents so reverse-engineering of binaries can be driven by natural-language tool calls.Java5,888
  5. LaurieWired/GhidraMCPLets an LLM drive Ghidra's decompiler and symbol renaming so reverse engineering of unfamiliar binaries can be automated.Java11,509