leibnitz27 / cfr

This is the public repository for the CFR Java decompiler
https://www.benf.org/other/cfr
MIT License
1.95k stars 249 forks source link

Adding custom deobfuscators #11

Open lab313ru opened 5 years ago

lab313ru commented 5 years ago

I understand that your decompiler is not designed to deal with obfuscated strings, but for others (or imagine situation that you obfuscated your code and have lost it) it will be great to have an ability to do some post-things with strings. For example: Deobfuscation method which accepts encrypted buffer, and decodes it

That's how I see it:

That would help with obfuscated strings.

lab313ru commented 5 years ago

Or just give me some tip, where I can access passed string and method name (to call it with JVM).

leibnitz27 commented 5 years ago

I like this idea, I just want to make sure I put the effort into getting a nice API.

lab313ru commented 5 years ago

The API may be modified during its using by people at real projects. So, I think, you will do the best.:)

lab313ru commented 5 years ago

Also, if you can, add please ability to call a decryption method by the vm.

For example, if the decryption method has many different variations: xor constants, etc., I want to use it, without manual decrypting.

So, maybe some JVM pointer should be accessible to decoder.