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

CCE on ReflectionObfuscationTransformer and a crash #993

Open
antihack3r opened this issue Mar 15, 2024 · 1 comment
Open

CCE on ReflectionObfuscationTransformer and a crash #993

antihack3r opened this issue Mar 15, 2024 · 1 comment

Comments

@antihack3r
Copy link

I've been following the readme.md usage (my first time with this program) and it just crashed. Can't provide the input file that has been used (dmca problems), but here's the console output:

[main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Loading classpath
[main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Loading input
[main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Computing callers
[main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Transforming
[main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Running com.javadeobfuscator.deobfuscator.transformers.normalizer.SourceFileClassNormalizer
[SourceFileClassNormalizer] Recovered 3376 source filenames
[main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Running com.javadeobfuscator.deobfuscator.transformers.zelix.ReflectionObfuscationTransformer
[Zelix] [ReflectionObfuscationTransformer] Starting
[Zelix] [ReflectionObfuscationTransformer] Finding reflection obfuscation
[Zelix] [ReflectionObfuscationTransformer] Found 927 reflection obfuscation instructions

Deobfuscation failed. Please open a ticket on GitHub and provide the following error:
java.lang.ClassCastException: class org.objectweb.asm.tree.InsnNode cannot be cast to class org.objectweb.asm.tree.LdcInsnNode (org.objectweb.asm.tree.InsnNode and org.objectweb.asm.tree.LdcInsnNode are in unnamed module of loader 'app')
        at com.javadeobfuscator.deobfuscator.transformers.zelix.ReflectionObfuscationTransformer.inlineReflection(ReflectionObfuscationTransformer.java:570)
        at com.javadeobfuscator.deobfuscator.transformers.zelix.ReflectionObfuscationTransformer.transform(ReflectionObfuscationTransformer.java:102)
        at com.javadeobfuscator.deobfuscator.Deobfuscator.runFromConfig(Deobfuscator.java:477)
        at com.javadeobfuscator.deobfuscator.Deobfuscator.start(Deobfuscator.java:434)
        at com.javadeobfuscator.deobfuscator.DeobfuscatorMain.run(DeobfuscatorMain.java:106)
        at com.javadeobfuscator.deobfuscator.DeobfuscatorMain.run(DeobfuscatorMain.java:99)
        at com.javadeobfuscator.deobfuscator.DeobfuscatorMain.main(DeobfuscatorMain.java:36)
@Janmm14
Copy link
Contributor

Janmm14 commented Mar 15, 2024

Do not use normalizers before real deobfuscation steps. Do not use SourcefileClassNormalizer until all obfuscation is gone.
Read https://github.com/java-deobfuscator/deobfuscator/blob/master/commonerrors/Zelix.md
So try string deobfuscation before.
And maybe try zelix flowobf transformer before as well.

If it still doesnt work, its too new zelix klassmaster version.

Usually if reflection transformer can not cast to LdcInsnNode, the problem is that string encryption ihas encrypted the reflection obfucation's strings.

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

2 participants