Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Il2cppdumper stopped working on Standoff 2 #781

Open
zolotov0 opened this issue Mar 15, 2024 · 3 comments
Open

Il2cppdumper stopped working on Standoff 2 #781

zolotov0 opened this issue Mar 15, 2024 · 3 comments

Comments

@zolotov0
Copy link

  • Il2CppDumper version 6.7.40

  • Unity version 2022.3.19f1

I always get an error. Apparently the developers broke the metadata (did not encrypt it), the dumper doesn't even get to the point of initializing il2cpp.
il2cpp & metadata.zip

Initializing metadata...
System.IO.EndOfStreamException: Reading past the end of the stream is not possible.
   in System.IO.__Error.EndOfFile()
   in System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   in System.IO.BinaryReader.ReadUInt32()
   in Il2CppDumper.BinaryStream.ReadUInt32() in C:\Users\OneDrive\Desktop\dump-standoff-2\Il2CppDumper-master\Il2CppDumper\IO\BinaryStream.cs:line 46
   in Il2CppDumper.BinaryStream.ReadPrimitive(Type type) in C:\Users\OneDrive\Desktop\dump-standoff-2\Il2CppDumper-master\Il2CppDumper\IO\BinaryStream.cs:line 100
   in Il2CppDumper.BinaryStream.ReadClass[T]() in C:\Users\OneDrive\Desktop\dump-standoff-2\Il2CppDumper-master\Il2CppDumper\IO\BinaryStream.cs:line 165
   in Il2CppDumper.BinaryStream.ReadClassArray[T](Int64 count) in C:\Users\OneDrive\Desktop\dump-standoff-2\Il2CppDumper-master\Il2CppDumper\IO\BinaryStream.cs:line 201
   at Il2CppDumper.BinaryStream.ReadClassArray[T](UInt64 addr, Int64 count) at C:\Users\neDrive\Desktop\dump-standoff-2\Il2CppDumper-master\Il2CppDumper\IO\BinaryStream.cs:line 209
   at Il2CppDumper.Metadata.ReadMetadataClassArray[T](UInt32 addr, Int32 count) at C:\Users\OneDrive\Desktop\dump-standoff-2\Il2CppDumper-master\Il2CppDumper\Il2Cpp\Metadata.cs:line 162
   in Il2CppDumper.Metadata..ctor(Stream stream) in C:\Users\OneDrive\Desktop\dump-standoff-2\Il2CppDumper-master\Il2CppDumper\Il2Cpp\Metadata.cs:line 77
   at Il2CppDumper.Program.Init(String il2cppPath, String metadataPath, Metadata& metadata, Il2Cpp& il2Cpp) at C:\Users\OneDrive\Desktop\dump-standoff-2\Il2CppDumper-master\Il2CppDumper\Program.cs:line 126
   in Il2CppDumper.Program.Main(String[] args) in C:\Users\OneDrive\Desktop\dump-standoff-2\Il2CppDumper-master\Il2CppDumper\Program.cs:line 100
Press any key to exit...
@rjukankukan
Copy link

a lil hint for you - load metadata structure in ida, apply it to s_GlobalMetadataHeader and compare outputs in 0.27.3 and 0.28.2

i don't think that the fix can be automatized, but who knows

@Fadeyauso
Copy link

did you fix it?

@rjukankukan
Copy link

image
it's fixable, but this is literally a cat-mouse game - i'll publish the fix and they will find another way to break the metadata
i posted a hint in my prev comment, those who search always find the solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@Fadeyauso @zolotov0 @rjukankukan and others