Site Search:
 
Speak Korean Now!
Teach English Abroad and Get Paid to see the World!
Korean Job Discussion Forums Forum Index Korean Job Discussion Forums
"The Internet's Meeting Place for ESL/EFL Teachers from Around the World!"
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Editing an exe file

 
Post new topic   Reply to topic    Korean Job Discussion Forums Forum Index -> Technology Forum
View previous topic :: View next topic  
Author Message
livinginkunsan



Joined: 02 Dec 2006

PostPosted: Thu Nov 22, 2007 7:51 pm    Post subject: Editing an exe file Reply with quote

I have a small freeware program, which I want to make a small change to (change the server address it is linked to). Does anyone know of a program in which I can do it? Thanks
Back to top
View user's profile Send private message
JustJohn



Joined: 18 Oct 2007
Location: Your computer screen

PostPosted: Thu Nov 22, 2007 8:06 pm    Post subject: Reply with quote

Are you sure both servers are sending the same kind of information, and in the same format? If not, it will likely be impossible.

If so, it should be doable, but is just out of my range of expertise. There are a couple people on here who *might* know though.
Back to top
View user's profile Send private message
Demophobe



Joined: 17 May 2004

PostPosted: Thu Nov 22, 2007 8:14 pm    Post subject: Reply with quote

You need to find out what language the program was written in and use an editor. Then you will have to recompile it and that's it.
Back to top
View user's profile Send private message
ttompatz



Joined: 05 Sep 2005
Location: Kwangju, South Korea

PostPosted: Thu Nov 22, 2007 9:05 pm    Post subject: Reply with quote

If it's an .exe file AND you do not have the source code (just the executable) you will have to:

decompile it,
make your changes in the language it was written in,
and then compile it again.

Reverse engineering of software is not easy without the source code.

If you can find a copy of the source code it is easy to make the changes and compile your new version.
Back to top
View user's profile Send private message Send e-mail
livinginkunsan



Joined: 02 Dec 2006

PostPosted: Thu Nov 22, 2007 9:30 pm    Post subject: Reply with quote

ya, this could be a problem. It was made by a friend of a friend, and i don't have the original source code. I am hoping it isn't too difficult to change a simple web address.
Back to top
View user's profile Send private message
mindmetoo



Joined: 02 Feb 2004

PostPosted: Thu Nov 22, 2007 10:04 pm    Post subject: Reply with quote

You don't necessarily need to decompile it. A hex editor might do the trick.

http://www.sweetscape.com/articles/hex_editor.html
Back to top
View user's profile Send private message
livinginkunsan



Joined: 02 Dec 2006

PostPosted: Thu Nov 22, 2007 10:34 pm    Post subject: Reply with quote

mindmetoo wrote:
You don't necessarily need to decompile it. A hex editor might do the trick.

http://www.sweetscape.com/articles/hex_editor.html


I too thought it might be that easy. I will give it a try tonight.
Back to top
View user's profile Send private message
mindmetoo



Joined: 02 Feb 2004

PostPosted: Thu Nov 22, 2007 10:41 pm    Post subject: Reply with quote

livinginkunsan wrote:
mindmetoo wrote:
You don't necessarily need to decompile it. A hex editor might do the trick.

http://www.sweetscape.com/articles/hex_editor.html


I too thought it might be that easy. I will give it a try tonight.


Of course it goes without saying back up your original EXE. You might also need to check the DLLs.
Back to top
View user's profile Send private message
dogshed



Joined: 28 Apr 2006

PostPosted: Fri Nov 23, 2007 12:50 am    Post subject: Reply with quote

One of the places I worked we did that sort of thing
as part of the installation of some software the company
sold. As long as you are replacing it with the exact
same number of characters it should work OK.

For lots of cool tools try Cygwin. Cygwin gives you
a unix like environment within windows.
Back to top
View user's profile Send private message
xenok



Joined: 03 Mar 2007

PostPosted: Sun Nov 25, 2007 5:54 pm    Post subject: Reply with quote

try to change your lmhosts file to redirect the server address it is linked to. if if the ip is not hardcoded into the source, this might be the easiest solution. and hex editors don't work on every exe file. as far as decompiling it, unless it's a very simple program; reverse engineering might be your only option.

good luck.
Back to top
View user's profile Send private message
ulmaeri



Joined: 26 Sep 2007

PostPosted: Sun Nov 25, 2007 7:44 pm    Post subject: Reply with quote

If you have a debugger, you can trace the program and find where in the exe it is calling the address. That should help with the hex editing.
Back to top
View user's profile Send private message
livinginkunsan



Joined: 02 Dec 2006

PostPosted: Mon Nov 26, 2007 3:30 pm    Post subject: Reply with quote

thank you guys for all the helpful responses. I figured it out Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Korean Job Discussion Forums Forum Index -> Technology Forum All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


This page is maintained by the one and only Dave Sperling.
Contact Dave's ESL Cafe
Copyright © 2018 Dave Sperling. All Rights Reserved.

Powered by phpBB © 2001, 2002 phpBB Group

TEFL International Supports Dave's ESL Cafe
TEFL Courses, TESOL Course, English Teaching Jobs - TEFL International