Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

smart reversing of compressed javascript with obscured variable & function names?

I want to know if there exists a tool to help in reversing a compressed javascript that has obscure variable names. I am not looking for a pretty-printing beautifier, but for a tool that actually knows how to change & propagate variable name choices.

Let me be more specific : - some of the functions belong to the 'public' API and i want to impose readable argument names in their prototypes - there are intermediary variables for document, window 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 have been correctly propagated.

thanks Jerome Wagner

like image 597
Jerome WAGNER Avatar asked Apr 10 '10 20:04

Jerome WAGNER


1 Answers

Sounds like maybe you need a javascript refactoring tool. Something that could refactor javascript, i.e take a javascript file and rename variables.

Here are some plugins for IDE's:

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 programatically, then this may not be the best solution for you.

like image 62
Brad C Avatar answered Oct 17 '22 17:10

Brad C