Viewing .exe File Source / Editing .exe File

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2009
Posts: 2
Reputation: Eusha is an unknown quantity at this point 
Solved Threads: 0
Eusha Eusha is offline Offline
Newbie Poster

Viewing .exe File Source / Editing .exe File

 
0
  #1
29 Days Ago
Hi Friends Is There Any Way To Open And ReEdit An .exe File... Suppose I Have a Portable .exe File Which Needs No Installation in My Windows. And I Want To Edit Some Icons or Some Text which is Given in The .exe File So What Should I Need To Do ???

I Have Drag And Dropped The .exe File on The Notepad But When Its Shows Me The Script its Impossible to Read The Signals or Commands..

Shortcutly "HOW TO EXTRACT AN .EXE FILE"



Thanks in Advance.
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 341
Reputation: dkalita will become famous soon enough dkalita will become famous soon enough 
Solved Threads: 49
dkalita's Avatar
dkalita dkalita is offline Offline
Posting Whiz
 
0
  #2
29 Days Ago
I don't think so.
And if there is some way I would love to know it.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 1,859
Reputation: twomers has a spectacular aura about twomers has a spectacular aura about twomers has a spectacular aura about 
Solved Threads: 55
twomers's Avatar
twomers twomers is offline Offline
Posting Virtuoso
 
0
  #3
29 Days Ago
Well... were you to decompile to hex and then recompile from modified hex you might be able to squander something... don't know if it'd work, though. Especially if the program depends on libraries and such.
For a really simple
  1. int main() {
  2. printf( "1" );
  3. return 0;
  4. }
you might be able to do something. But anything complicated... forget it, in my completely uneducated opinion on this matter.
I blag!?
"Mr Kitty, you have to live in the attic now. Here, write a diary."
I am the Walrus!
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 1,859
Reputation: twomers has a spectacular aura about twomers has a spectacular aura about twomers has a spectacular aura about 
Solved Threads: 55
twomers's Avatar
twomers twomers is offline Offline
Posting Virtuoso
 
0
  #4
29 Days Ago
Well... were you to decompile to hex and then recompile from modified hex you might be able to squander something... don't know if it'd work, though. Especially if the program depends on libraries and such.
For a really simple
  1. int main() {
  2. printf( "1" );
  3. return 0;
  4. }
you might be able to do something. But anything complicated... forget it, in my completely uneducated opinion on this matter.
I blag!?
"Mr Kitty, you have to live in the attic now. Here, write a diary."
I am the Walrus!
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 2
Reputation: Eusha is an unknown quantity at this point 
Solved Threads: 0
Eusha Eusha is offline Offline
Newbie Poster
 
0
  #5
29 Days Ago
Originally Posted by twomers View Post
Well... were you to decompile to hex and then recompile from modified hex you might be able to squander something... don't know if it'd work, though. Especially if the program depends on libraries and such.
For a really simple
  1. int main() {
  2. printf( "1" );
  3. return 0;
  4. }
you might be able to do something. But anything complicated... forget it, in my completely uneducated opinion on this matter.

Hello Please Explain it...


Actually I Dont Understand What To DO With These Codes !!!!!!
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 3
Reputation: fanza is an unknown quantity at this point 
Solved Threads: 1
fanza fanza is offline Offline
Newbie Poster
 
0
  #6
29 Days Ago
thanks for this useful and informative posting here. i like this very much.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 303
Reputation: JasonHippy is a jewel in the rough JasonHippy is a jewel in the rough JasonHippy is a jewel in the rough JasonHippy is a jewel in the rough 
Solved Threads: 52
JasonHippy's Avatar
JasonHippy JasonHippy is online now Online
Posting Whiz
 
0
  #7
29 Days Ago
Originally Posted by Eusha View Post
Hi Friends Is There Any Way To Open And ReEdit An .exe File... Suppose I Have a Portable .exe File Which Needs No Installation in My Windows. And I Want To Edit Some Icons or Some Text which is Given in The .exe File So What Should I Need To Do ???

I Have Drag And Dropped The .exe File on The Notepad But When Its Shows Me The Script its Impossible to Read The Signals or Commands..

Shortcutly "HOW TO EXTRACT AN .EXE FILE"



Thanks in Advance.
Ok, well for starters what you're seeing in Notepad isn't any kind of script, it's actually machine code but rendered in notepad as ascii text. But if you view the .exe with a Hex editor, then things will become a little clearer...As long as you can read machine code that is!

If you only want to edit text and icons in the program, then you could use something like resource hacker:
http://www.softpedia.com/get/Program...e-Hacker.shtml

Resource hacker can partially decompile an exe and will display any resources it uses (strings and bitmaps). You can then edit the resources, recompile the executable and save it. (but don't forget to keep backups of your original .exe files!)

Resource hacker won't necessarily work 100% of the time for all .exe's and there are no guarantees that the exported .exe will work properly after editing the resources and recompiling, but I understand that it does work sometimes!

I have seen tutorials online where Windows users have successfully used resource hacker to edit explorer.exe in order to customise the text on their start button in Windows XP....Again I couldn't really recommend this type of action as there are no guarantees that the exported .exe will work properly, if at all! And what with explorer.exe being a Windows system file, there are no guarantees that messing with the file won't screw your OS either!

Another thing to bear in mind is that a lot of programs prohibit decompiling in their license agreements. So by decompiling the code, even if you are only decompiling the resources; you could very well be breaking the law!

Personally I'd say as long as you are planning on modifying the program for your own personal use and as long as the programs license agreement does not prohibit decompilation, then fine...Go ahead and try resource hacker, but do so at your own risk. Just don't start whining if it completely breaks your .exe.

And whatever you do, DO NOT try to distribute any of your modified .exe's or attempt to pass them off as your own work as that would be considered both plagarism and piracy! (Two things that are severely frowned upon here at Daniweb and elsewhere in polite, civilised, law-abiding society!)

Cheers for now,
Jas.
Last edited by JasonHippy; 29 Days Ago at 7:37 am.
There are 10 types of people in this world.....
Those who understand binary .....
And those who don't!
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC