Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive > Starbucks @ RunUO.com

Starbucks @ RunUO.com Unmoderated forum for off-topic banter, screen shots, chit-chat and things of this nature. Flames are permitted, and you can pretty much do nearly anything within reason. No advertisements.

 
 
Thread Tools Display Modes
Old 07-04-2008, 03:03 AM   #1 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Post A Good Decompiler?

Um i been wanting to decompile a really old program for its source code so i can re-write it to have some extra features that i believe it needs.

The problem is that the program is no longer updated or worked on, so i figured i could just decompile it and re-write it for myself.

So i started Googling for a decompiler that will decompile a .exe to a source code of my choice, preferably .Net VB or .Net C#, so far i have no sucess in finding a free decompiler to decompile the .exe, so i figured i might as well post here and ask if anyone knows of one that they may use or have used in the past.

TIA
Alex21 is offline  
Old 07-04-2008, 03:07 AM   #2 (permalink)
Master of the Internet
 
Radwen's Avatar
 
Join Date: Apr 2005
Location: Nowhere
Age: 22
Posts: 11,653
Default

You cannot decompile an exe to get the source code.
__________________
-Socks are great.

Ask Radwen.
http://www.runuo.com/forums/starbucks-runuo-com/76473-ask-radwen.html
Radwen is offline  
Old 07-04-2008, 03:26 AM   #3 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,891
Default

You cannot decompile a C++ exe or dll to get source, you can however decompile a .Net dll or exe into source, but 9 out of 10 times it wont be the same code, and it wont work right.... How about instead of being a cunt and stealing someone elses code, you be original, and write the fucking application yourself. Asshole.

Also, if for any reason you are talking about ConnectUO, go fuck yourself, I just updated it today, and have started working on more updates...hopefully you aren't talking about it, but if you are, you are a cunt....
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 07-04-2008, 03:34 AM   #4 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by Jeff View Post
You cannot decompile a C++ exe or dll to get source, you can however decompile a .Net dll or exe into source, but 9 out of 10 times it wont be the same code, and it wont work right.... How about instead of being a cunt and stealing someone elses code, you be original, and write the fucking application yourself. Asshole.

Also, if for any reason you are talking about ConnectUO, go fuck yourself, I just updated it today, and have started working on more updates...hopefully you aren't talking about it, but if you are, you are a cunt....
Isn't the purpose of a decompiler to understand how something works? And i didn't mean source code, i ment like the procedures etc to get an idea of how it handles being communicated with over the internet with out fucking packet sniffing, I do not have the time to do it from scratch.

Um why would i decompile connect uo?, razor connects to uo and it isn't ugly and crash prone.
Alex21 is offline  
Old 07-04-2008, 03:38 AM   #5 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,891
Default

Quote:
Originally Posted by Alex21 View Post
Isn't the purpose of a decompiler to understand how something works? And i didn't mean source code, i ment like the procedures etc to get an idea of how it handles being communicated with over the internet with out fucking packet sniffing, I do not have the time to do it from scratch.

Um why would i decompile connect uo?, razor connects to uo and it isn't ugly and crash prone.
No decompiling is for fucking cunts, why dont you go read some whitepapers, or a book and learn just like every other respectable programmer... Or... here is a thought, ask questions to ppl who might know how to do something....dont be a fucking idiot, dont decompile someone elses hard work, its rude and wrong....

Im still guessing it has something todo with UO.
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 07-04-2008, 03:47 AM   #6 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by Jeff View Post
No decompiling is for fucking cunts, why dont you go read some whitepapers, or a book and learn just like every other respectable programmer... Or... here is a thought, ask questions to ppl who might know how to do something....dont be a fucking idiot, dont decompile someone elses hard work, its rude and wrong....

Im still guessing it has something todo with UO.
Nothing to do with UO, just an outdated fps shooter which has no hack protection, i was going to re-write the server and introduce some kind of anti-hack code, i also want it to produce reports and handle console commands.
Alex21 is offline  
Old 07-04-2008, 03:49 AM   #7 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,891
Default

Quote:
Originally Posted by Alex21 View Post
Nothing to do with UO, just an outdated fps shooter which has no hack protection, i was going to re-write the server and introduce some kind of anti-hack code, i also want it to produce reports and handle console commands.
its prolly written in C++ so you aren't going to get anywhere, write the server from scratch.
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 07-04-2008, 03:53 AM   #8 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by Jeff View Post
its prolly written in C++ so you aren't going to get anywhere, write the server from scratch.
Its written in C
Alex21 is offline  
Old 07-04-2008, 03:55 AM   #9 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Is there a difference between C and C++?
Alex21 is offline  
Old 07-04-2008, 03:58 AM   #10 (permalink)
Master of the Internet
 
DontdroptheSOAD's Avatar
 
Join Date: Apr 2003
Location: Glen Saint Mary, Florida
Age: 19
Posts: 6,834
Send a message via AIM to DontdroptheSOAD
Default

Quote:
Originally Posted by Alex21 View Post
Is there a difference between C and C++?
Absolutely none, they are exactly the same things, they just added the ++ to appeal to the younger crowd.
__________________

Robin Lovett
April 21, 1948 - March 12, 2007
DontdroptheSOAD is offline  
Old 07-04-2008, 03:59 AM   #11 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,891
Default

Quote:
Originally Posted by DontdroptheSOAD View Post
Absolutely none, they are exactly the same things, they just added the ++ to appeal to the younger crowd.
hahahahahahaha

anyway, yes, different compilers, different language.... but none the less both compile to machine code and cannot be decompiled or viewed in their original state....
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 07-04-2008, 05:52 AM   #12 (permalink)
Account Terminated
 
J MaNN's Avatar
 
Join Date: Apr 2006
Location: ┬MeDiNa, OhIo┬
Age: 20
Posts: 1,317
Default

Quote:
Originally Posted by DontdroptheSOAD View Post
Absolutely none, they are exactly the same things, they just added the ++ to appeal to the younger crowd.
lol, owned.
J MaNN is offline  
Old 07-04-2008, 07:15 AM   #13 (permalink)
Ray
Forum Novice
 
Join Date: Jul 2004
Location: Switzerland
Age: 25
Posts: 234
Default

So eh... written in C
Then you shouldnt expect anything really useful from a decompiler as nearly every bit of information besides the procedural workflow gets removed/optimized and stripped away when the compiler does it's duty.

This means: No comments, no variable names, no macros nor inline-functions. No custom datatypes, No functoin names (except the entrypoint 'main' and perhaps some external functions in shared link libraries) and most likely: lots of ASM instructions.
The produced code doesnt even look like the original code.
And if you compile it again, you'll get, probably, something different.

There are lots of decompilers out there. Use a webcrawler to get one that fits your needs. But im pretty sure there's no decompiler for a native PE to managed code, as those languages lack support of ASM instructions. Decompilers need them, as not every bit of machine code can be translated back to a function that would make any sense. And nothing more than translators they are. Think of them like using babelfish.

If you're into added functionality, you should try code-injection rather than decompillation. That way, you dont fuck up the binaries ( hell - debuggung decompillated code), and you dont have to distribute property of the legal owner/creator of the code, which would be an infringement.
But this topic is pretty advanced... sorry to say if you don't know the difference between C and C++ then both ways are most likely beyond your abilities.
Anyways, it could be a good hint to have decompillated C code procedures to write your very own server. But even that is miles away from Copy/Pasteable code.

Good luck.
Ray is offline  
Old 07-04-2008, 11:36 AM   #14 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,817
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Learn a debugger and some ASM
__________________
go fish
Suil Ban is offline  
Old 07-04-2008, 01:57 PM   #15 (permalink)
Newbie
 
Join Date: Nov 2007
Age: 26
Posts: 62
Default

Wow no wonder the runuo forums are known as an unfriendly place.
Talk about overreacting...
Amy- is offline  
Old 07-04-2008, 02:05 PM   #16 (permalink)
Master of the Internet
 
Anti-Basic's Avatar
 
Join Date: Dec 2005
Age: 20
Posts: 12,927
Default

There's no such thing as overreacting when Alex21 is involved. Consider it along the lines of the straw that broke the camel's back. As far as Jeff's educated guess about cuo, its most likely accurate, as Alex21 has expressed desire to do that in the past. So it's not just a random accusation.
__________________
Quote:
Originally Posted by madmadmax3 View Post
I didn't insult anyone dumpass
Anti-Basic is offline  
Old 07-04-2008, 05:17 PM   #17 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,891
Default

Quote:
Originally Posted by Amy- View Post
Wow no wonder the runuo forums are known as an unfriendly place.
Talk about overreacting...
cant take the heat, get the fuck out of the kitchen. oh, and have a nice day.
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 07-04-2008, 05:32 PM   #18 (permalink)
Newbie
 
Sleepy Char's Avatar
 
Join Date: Jan 2005
Age: 22
Posts: 69
Default

Just out of interest, Jeff, how do you think the applications powering the shards which your app links to were created? Don't get me wrong, I know the RunUO team are clever, but I doubt the packet descriptions came to them in a dream. Same for Krioss' client and its handling of graphics, sound, and other UO datafiles.

You sure are uppity about reverse engineering for somebody whose claim to fame is an app built on private server emulators.
Sleepy Char is offline  
Old 07-04-2008, 06:50 PM   #19 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by Anti-Basic View Post
There's no such thing as overreacting when Alex21 is involved. Consider it along the lines of the straw that broke the camel's back. As far as Jeff's educated guess about cuo, its most likely accurate, as Alex21 has expressed desire to do that in the past. So it's not just a random accusation.
where have i showed the intention, source?
Alex21 is offline  
Old 07-04-2008, 07:07 PM   #20 (permalink)
Master of the Internet
 
Anti-Basic's Avatar
 
Join Date: Dec 2005
Age: 20
Posts: 12,927
Default

Quote:
Originally Posted by Alex21 View Post
where have i showed the intention, source?
You mean the link that got deleted for advertising, where you wanted people to check out your "UO Connect" Website? Gee that name sounds awfully familiar...
__________________
Quote:
Originally Posted by madmadmax3 View Post
I didn't insult anyone dumpass
Anti-Basic is offline  
Old 07-04-2008, 08:04 PM   #21 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by Anti-Basic View Post
You mean the link that got deleted for advertising, where you wanted people to check out your "UO Connect" Website? Gee that name sounds awfully familiar...
that is a website i started from scratch, and since the name offended you guys, it was changed to join uo, and the graphics are being re-done, ty for all the feedback in that thread btw, it now does almost everything the CUO website does it just doesn't look as good , and we havn't really though of making a client yet, with razor to compete with why bother.
Alex21 is offline  
Old 07-04-2008, 08:11 PM   #22 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,817
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Quote:
Originally Posted by Alex21 View Post
that is a website i started from scratch, and since the name offended you guys, it was changed to join uo, and the graphics are being re-done, ty for all the feedback in that thread btw, it now does almost everything the CUO website does it just doesn't look as good , and we havn't really though of making a client yet, with razor to compete with why bother.
y so dumb ??
__________________
go fish
Suil Ban is offline  
Old 07-04-2008, 08:13 PM   #23 (permalink)
Master of the Internet
 
Anti-Basic's Avatar
 
Join Date: Dec 2005
Age: 20
Posts: 12,927
Default

I don't think he fully understands the difference between those two programs
__________________
Quote:
Originally Posted by madmadmax3 View Post
I didn't insult anyone dumpass
Anti-Basic is offline  
Old 07-04-2008, 10:03 PM   #24 (permalink)
Forum Expert
 
Rosetta's Avatar
 
Join Date: May 2007
Location: In the Trees =]
Age: 32
Posts: 982
Send a message via AIM to Rosetta
Default

I like how much easier it is to play on a custom shard with CUO.
But Razor is great for no custom shards and macros. Plus all the other things one can do with it.
__________________
Rose: You think you're so impressive. The Doctor: I am so impressive! Rose: You wish.
Rosetta is offline  
Old 07-05-2008, 05:05 AM   #25 (permalink)
Hybrid Forum Moderator
 
MrBrightside's Avatar
 
Join Date: Feb 2005
Age: 19
Posts: 4,060
Send a message via AIM to MrBrightside
Default

Quote:
Originally Posted by DontdroptheSOAD View Post
Absolutely none, they are exactly the same things, they just added the ++ to appeal to the younger crowd.
rofl
__________________
MrBrightside is offline  
 

Bookmarks