Cycling and bicycle discussion forums. 
   Click here to join our community Log in to access your Control Panel  


Go Back   > >

Foo Off-Topic chit chat with no general subject.

Reply
 
Thread Tools Search this Thread
Old 02-11-08, 10:06 PM   #1
EJ123
'05 NUEser
Thread Starter
 
EJ123's Avatar
 
Join Date: Aug 2005
Bikes:
Posts: 3,370
Is this possible computery people?

So I have an exe program I downloaded off a site. Is there a way I can view the codes that it took to build that program?
EJ123 is offline   Reply With Quote
Old 02-11-08, 10:10 PM   #2
jaxgtr
Senior Member
 
jaxgtr's Avatar
 
Join Date: Jul 2006
Location: Jacksonville, FL
Bikes: Trek ALR 6, Trek CrossRip, Trek X-Caliber 8
Posts: 4,354
Yes, but you need a hack program to do it or you can use TransmitFile()
__________________
Brian | 2015 Trek Emonda ALR 6 | 2015 Trek X-Caliber 8 | 2014 Trek CrossRip Comp
Quote:
Originally Posted by AEO View Post
you should learn to embrace change, and mock it's failings every step of the way.
jaxgtr is offline   Reply With Quote
Old 02-12-08, 05:29 AM   #3
steve2k
Senior Mumbler
 
steve2k's Avatar
 
Join Date: Jan 2007
Location: England
Bikes: Ridgeback Voyage (for touring and commuting), unknown beach cruiser (for smiling)
Posts: 440
This isn't easy, and probably not worth trying unless you are a super geek.

Compiling an EXE first converts the source code (optimised for people to understand) into assembly code (optimised for computers to understand), then it turns it into the EXE.

You can sometimes get from the EXE back to the assembly code, but getting back to the source isn't easy. If you can understand assembly language then there's a chance, but I suspect it'd be quicker to program the whole thing again from scratch.
steve2k is offline   Reply With Quote
Old 02-12-08, 06:58 AM   #4
operator
cab horn
 
Join Date: Jun 2004
Location: Toronto
Bikes: 1987 Bianchi Campione
Posts: 28,306
Quote:
Originally Posted by steve2k View Post
You can sometimes get from the EXE back to the assembly code, but getting back to the source isn't easy. If you can understand assembly language then there's a chance, but I suspect it'd be quicker to program the whole thing again from scratch.
You can't really say this with certainty unless you know WHAT exe he was talking about. If it was a "hello world" application it'd be easy to start from scratch. But if not the, well we'll just have to see.

Depdending on what language the program was originally written in, there are decompilers out there - but you won't get the exact source code they use AND most importantly for any substantial program, no comments to go with it.

I don't want to make assumptions but from how the OP is describin this problem, but it sounds like it's going to be way over your head.

Quote:
Originally Posted by jaxgtr View Post
Yes, but you need a hack program to do it or you can use TransmitFile()
This is a bunch of nonsense.

Last edited by operator; 02-12-08 at 07:10 AM.
operator is offline   Reply With Quote
Old 02-12-08, 07:10 AM   #5
markhr
POWERCRANK addict
 
markhr's Avatar
 
Join Date: Mar 2005
Location: North Acton, West London, UK
Bikes:
Posts: 3,783
Possibly try and find code that does something similar, i.e., not the same code but a similar end result.

http://code.google.com/
__________________
shameless POWERCRANK plug
Recommended reading for all cyclists - Cyclecraft - Effective Cycling
Condor Cycles - quite possibly the best bike shop in London
Don't run red lights, wear a helmet, use hand signals, get some cycle lights(front and rear) and, FFS, don't run red lights!
markhr is offline   Reply With Quote
Old 02-12-08, 09:20 AM   #6
DannoXYZ 
Senior Member
 
DannoXYZ's Avatar
 
Join Date: Jul 2005
Location: Saratoga, CA
Bikes:
Posts: 11,600
You can disassemble code with IdaPro. Took me about 2-years to decode 8k of code in the Motronics boxes.
DannoXYZ is offline   Reply With Quote
Old 02-12-08, 09:39 AM   #7
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
If it is open source, maybe just ask for the source?
Maelstrom is offline   Reply With Quote
Old 02-12-08, 10:10 AM   #8
Indy_Rider
Banned
 
Indy_Rider's Avatar
 
Join Date: Dec 2004
Location: On a boat
Bikes: 2000 Fisher Paragon, 2005 Giant OCR2, 2006 Bianchi SASS, numerous others
Posts: 56
Quote:
Originally Posted by Maelstrom View Post
If it is open source, maybe just ask for the source?
And if it isn't, maybe you shouldn't be trying to steal someones hard work and intellectual property.
Indy_Rider is offline   Reply With Quote
Old 02-12-08, 10:10 AM   #9
KingTermite 
On my TARDIScycle!
 
KingTermite's Avatar
 
Join Date: Jun 2005
Location: Eastside Seattlite Termite Mound
Bikes: Trek 520, Trek Navigator 300, Peugeot Versailles PE10DE
Posts: 3,924
Quote:
Originally Posted by EJ123 View Post
So I have an exe program I downloaded off a site. Is there a way I can view the codes that it took to build that program?
Forget it EJ. It's barely possible, but quite frankly, not at your programming skill level.

You would need to decompile a program and view that.

Explanation: When you compile a program, the compiler takes your variable names and gives them very generic names like var1, var2 no matter what data type. Then it takes your instructions and breaks them down into much, much simpler instructions so that the code is 10x longer. Then it finds ways to some things that could be done more efficiently so it changes parts of the programs. Then it finds other things that you linked to (yes, you are linking to something any time you use a standard function) and puts that code in as well doing the same above process.

By the time you see the results even a seasoned programmer would barely recognize it from what "he/she wrote".


You are better off finding a program (like much GNU and Opensource) that offers the source code to you.
__________________
Quote:
Originally Posted by coffeecake View Post
- it's pretty well established that Hitler was an *******.
KingTermite is offline   Reply With Quote
Old 02-12-08, 11:02 AM   #10
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Quote:
Originally Posted by Indy_Rider View Post
And if it isn't, maybe you shouldn't be trying to steal someones hard work and intellectual property.
Thats what i meant to say haha...
Maelstrom is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 01:37 AM.