Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 I doubt it's possible, but...
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Travveh




PostPosted: Tue Jul 17, 2007 5:11 pm   Post subject: I doubt it's possible, but...

Is it possible to convert an .exe file back into its original programming language?

~Noobie Trav
Sponsor
Sponsor
Sponsor
sponsor
Aziz




PostPosted: Tue Jul 17, 2007 5:33 pm   Post subject: RE:I doubt it\'s possible, but...

Well, theoretically I guess it is possible, however (especially depending on the language), this could be difficult and/or non-productive. Many compilers optimize code, and the code will be messy and non-imformative (no names for variables, methods, etc).

I've used one to reverse-engineer Java .class files before, and it wasn't pretty.

But best wait until one of the gurus get here.

Btw, what is it you're wanting to use this for?
rizzix




PostPosted: Tue Jul 17, 2007 6:18 pm   Post subject: RE:I doubt it\'s possible, but...

There are a few good disassemblers out there, but most of them disassemble to some assembly language.

You should search for a assembly -> higher level language compiler. Such compiler would generate code in the language you desire.

I heard for windows IDA Pro is a good disassembler/debugger. It's not free though.

There might be some good opensourced ones too. I don't know much about the assembly -> higher level language compilers though. Java has some, but they do a direct bytecode -> java compilation.

But keep in mind, like Aziz said, compilers do quite a bit of optimization. So the resulting code may look a lot different form the original.
Aziz




PostPosted: Tue Jul 17, 2007 6:21 pm   Post subject: RE:I doubt it\'s possible, but...

rizzix, by bytecode -> java compilation, do you mean .class -> .java?
rizzix




PostPosted: Tue Jul 17, 2007 6:22 pm   Post subject: RE:I doubt it\'s possible, but...

yep
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: