Extract .NET metadata from il2cpp binaries. (types, methods, fields, etc.)
DummyDll
:- DLLs generated by Mono.Cecil which contain the .NET metadata extracted from the binary (no code included). Can be viewed in .NET decompilers (ILSPy, DnsPy, JetBrains dotPeek (recommended) ). script.py
:- Requires IDA (I use IDA 7.0 Pro ) and IDAPython. dump.cs
:- C# pseudocode. Can be viewed in text editors (syntax highlighting recommended)git clone https://github.com/Shubzz-02/Il2CppDumper.git
libil2cpp.so
and global-metadata.dat
to Il2CppDumper/ folder.Il2CppDumper.exe
choose libil2cpp.so
and global-metadata.dat
./assets/bin/Data/Resources/unity_builtin_extra
in any hex editor ( try hexed) and look at address 0x00000014
(see screenshots attached below) you will find something like 2018.3.14f
this is the unity version you need, type this in terminal and press enter.Assembly-CSharp.dll
in any .NET decompilers (ILSPy, DnsPy, JetBrains dotPeek (recommended) ).libil2cpp.so
in Ida (Note :- Use IDA Pro ) and wait until Ida load it completely.script.py
in Ida via File -> Script file
, and wait for script to execute.