• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

De-obfuscation

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
How do I de-obfuscate a code? Any free tools available?
Rgds
Zaeem
 
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've done a bit of de-obfuscating by hand, usually just to locate a specific feature though (not reobtaining whole source code). You could probably use any modern IDE/refactoring tool that will update renamed methods, classes, and fields for you. Make sure you stick in comments whenever you figure out what something does. If there's flow obfuscation, may the force be with you.
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are free tools out there. I can tell you such a thing called mocha exists, but there's enough legal trouble surrounding its distribution that you should search for it yourself. In short, Symantec has been trying for years to apply legal pressure on mocha's author. You can get it, though, if you look.
For something less controversial, try JODE.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another good one is called JAD. It does fairly well and easy to use.

------------------
Jason R. Kretzer
Software Engineer
http://alia.iwarp.com
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wait a second, are we talking about decompiling or de-obfuscating?
 
zaeem masood ashar
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
we are talking about de-obfuscating an already obfuscated code!!
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's what I thought. Anyway, de-obfuscation is hard work (that's why people obfuscate things!). There isn't a simple way or tool. You just have to carefully examine what code does and what String constants are nearby to come up with good comments and method/field/class names. A lot of information is lost in the obfuscation process and you shouldn't hope to discover it all. Always keep the reason you're trying to de-obfuscate in mind so you can try to ignore that parts of the program that don't matter.
 
Jason Kretzer
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DOH! My fault. Sorry about that. JAD is a decompiler.
Sincerest apologies.

------------------
Jason R. Kretzer
Software Engineer
http://alia.iwarp.com
 
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic