java-deobfuscator / deobfuscator

The real deal
https://javadeobfuscator.com
Apache License 2.0
1.55k stars 289 forks source link

Deobfuscation failed :( #269

Closed ghost closed 3 years ago

ghost commented 6 years ago

I have error [Thread-3] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Loading classpath [Thread-3] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Loading input [Thread-3] ERROR com.javadeobfuscator.deobfuscator.Deobfuscator - Could not parse .class (is it a class file?) java.lang.IllegalArgumentException at com.javadeobfuscator.org.objectweb.asm.ClassReader.(ClassReader.java:160) at com.javadeobfuscator.org.objectweb.asm.ClassReader.(ClassReader.java:143) at com.javadeobfuscator.deobfuscator.Deobfuscator.loadInput(Deobfuscator.java:185) at com.javadeobfuscator.deobfuscator.Deobfuscator.loadInput(Deobfuscator.java:173) at com.javadeobfuscator.deobfuscator.Deobfuscator.start(Deobfuscator.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.javadeobfuscator.deobfuscator.ui.wrap.Deobfuscator.run(Deobfuscator.java:74) at com.javadeobfuscator.deobfuscator.ui.SwingWindow$15$1.run(SwingWindow.java:811) at java.lang.Thread.run(Unknown Source)

Deobfuscation failed. Please open a ticket on GitHub and provide the following error: java.lang.ArrayIndexOutOfBoundsException: 43697 at com.javadeobfuscator.org.objectweb.asm.ClassReader.(ClassReader.java:171) at com.javadeobfuscator.org.objectweb.asm.ClassReader.(ClassReader.java:143) at com.javadeobfuscator.deobfuscator.Deobfuscator.loadInput(Deobfuscator.java:185) at com.javadeobfuscator.deobfuscator.Deobfuscator.loadInput(Deobfuscator.java:173) at com.javadeobfuscator.deobfuscator.Deobfuscator.start(Deobfuscator.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.javadeobfuscator.deobfuscator.ui.wrap.Deobfuscator.run(Deobfuscator.java:74) at com.javadeobfuscator.deobfuscator.ui.SwingWindow$15$1.run(SwingWindow.java:811) at java.lang.Thread.run(Unknown Source)

ItzSomebody commented 6 years ago

Can you link your jar? My guess is that a fake or invalid class was included in the jar.

ghost commented 6 years ago

https://www30.zippyshare.com/v/rSeCK1kO/file.html

ThisTestUser commented 6 years ago

Yeah, it appears that the classes are fake. One way to fix this would be to catch the exception that is causing the error, as the class wouldn't be loaded anyway.

ThisTestUser commented 6 years ago

Also, are you sure that your file is runnable? There are a lot of missing classes there.

ghost commented 6 years ago

This is the Minecraft security client and fps client. https://www1.zippyshare.com/v/zblydmsK/file.html

ghost commented 6 years ago

yes work

ghost commented 6 years ago

I think so, but I'm not sure.

ItzSomebody commented 6 years ago

Sigma client is doing something similar, I'm guessing some class encryption is involved.

ghost commented 6 years ago

Is there any way to decode this? In the winrar program you can see an unnamed class.

ThisTestUser commented 6 years ago

I'll try running this in a VM to see if this works.

ghost commented 6 years ago

I found one strange class that did not have a name, but after removing it, the game stopped working

ThisTestUser commented 6 years ago

Do you have a crash report or something similar to that? Also, try removing some other "broken" classes to see if it still works.

ThisTestUser commented 6 years ago

I've done a bit of digging, and it seems that the classes are probably decrypted via a native library.

ghost commented 6 years ago

new version: https://www85.zippyshare.com/v/jBQydnba/file.html