Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(2009) - Tool to deobfuscate Java codes

Is there a tool to deobfuscate java obfuscated codes?

The codes is extracted from a compiled class but they are obfuscated and non-readable.

like image 332
Salar Avatar asked Nov 02 '09 18:11

Salar


3 Answers

First step would be to learn with which tool it was obfuscated. Maybe there's already a "deobfuscator" around for the particular obfuscator.

On the other hand, you can also just run an IDE and use its refactoring powers. Rename the class, method and variable names to something sensitive. Use your human logical thinking powers to figure what the code actually represents and name them sensitively. And the picture would slowly but surely grow.

Good luck.

like image 197
BalusC Avatar answered Sep 28 '22 18:09

BalusC


Did you try to make the code less obscure with Java Deobfuscator (aka JDO), a kind of smart decompiler?

Currently JDO does the following:

  • renames obfuscated methods, variables, constants and class names to be unique and more indicative of their type
  • propogates changes throughout the entire source tree (beta)
  • has an easy to use GUI
  • allow you to specify the name for a field, method and class (new feature!)

Currently JDO does not do the following (but it might one day)

  • modify method bytecode in any way
like image 20
Pascal Thivent Avatar answered Sep 28 '22 20:09

Pascal Thivent


Not to gravedig but I wrote a tool that works on most commercial obfuscators

https://github.com/Contra/JMD

like image 27
Contra Avatar answered Sep 28 '22 19:09

Contra