Clever reversal of compressed javascript with shadowed variable and function names?

I want to know if there is a tool that helps in handling compressed javascript that has obscure variable names. I'm not looking for a beautiful printer, but for a tool that actually knows how to change and distribute variations of variable names.

Let me clarify: - some of the functions belong to the "public" API, and I want to impose readable argument names in my prototypes - there are intermediate variables for documents, windows and other browser idioms.

I would like to give this knowledge to the tool, and then let it create another javascript where the knowledge would be properly distributed.

thanks Jerome Wagner

+6
javascript compression obfuscation reverse-engineering
source share
1 answer

It looks like you need a javascript refactoring tool. Something that could reorganize javascript, for example, take a javascript file and rename variables.

Here are some plugins for the IDE:

http://www.brics.dk/jsrefactor/index.html

http://www.jetbrains.com/editors/javascript_editor.jsp?ide=idea#JavaScript%5Frefactoring

If you are trying to do this programmatically, then this may not be the best solution for you.

+1
source share

All Articles