SamboyCoding / Cpp2IL

Work-in-progress tool to reverse unity's IL2CPP toolchain.
MIT License
1.56k stars 178 forks source link

Dump fails due invalid metadata #273

Closed Umbra999 closed 4 months ago

Umbra999 commented 4 months ago

The dump fails due magic number check in the metadata. I would assume its encrypted? But no idea where to start to fix it on my own Bild_2024-02-16_025910369

davispuh commented 4 months ago

I'm getting same issue, header shows as 0x0059484D version 0

$  hexdump -n 48 -C global-metadata.dat
00000000  4d 48 59 00 00 00 00 00  df 4f 23 98 f4 76 1f 40  |MHY......O#..v.@|
00000010  da 33 6f 52 c5 f5 e3 44  33 db 58 27 9f 86 97 6b  |.3oR...D3.X'...k|
00000020  c9 16 25 d0 45 3d e2 15  fd 0d 66 49 20 48 7f 5a  |..%.E=....fI H.Z|
00000030
SamboyCoding commented 4 months ago

MHY not getting any support with that on github because I value not having my repo taken down. Anyway to answer the original question of the issue, encrypted metadata you'd eventually be able to write a plugin but I'm not going to even attempt to write support for any of this stuff into cpp2il itself.