View previous topic :: View next topic |
Author |
Message |
livinginkunsan

Joined: 02 Dec 2006
|
Posted: Thu Nov 22, 2007 7:51 pm Post subject: Editing an exe file |
|
|
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 |
|
 |
JustJohn

Joined: 18 Oct 2007 Location: Your computer screen
|
Posted: Thu Nov 22, 2007 8:06 pm Post subject: |
|
|
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 |
|
 |
Demophobe

Joined: 17 May 2004
|
Posted: Thu Nov 22, 2007 8:14 pm Post subject: |
|
|
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 |
|
 |
ttompatz

Joined: 05 Sep 2005 Location: Kwangju, South Korea
|
Posted: Thu Nov 22, 2007 9:05 pm Post subject: |
|
|
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 |
|
 |
livinginkunsan

Joined: 02 Dec 2006
|
Posted: Thu Nov 22, 2007 9:30 pm Post subject: |
|
|
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 |
|
 |
mindmetoo
Joined: 02 Feb 2004
|
|
Back to top |
|
 |
livinginkunsan

Joined: 02 Dec 2006
|
Posted: Thu Nov 22, 2007 10:34 pm Post subject: |
|
|
I too thought it might be that easy. I will give it a try tonight. |
|
Back to top |
|
 |
mindmetoo
Joined: 02 Feb 2004
|
Posted: Thu Nov 22, 2007 10:41 pm Post subject: |
|
|
livinginkunsan wrote: |
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 |
|
 |
dogshed

Joined: 28 Apr 2006
|
Posted: Fri Nov 23, 2007 12:50 am Post subject: |
|
|
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 |
|
 |
xenok
Joined: 03 Mar 2007
|
Posted: Sun Nov 25, 2007 5:54 pm Post subject: |
|
|
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 |
|
 |
ulmaeri
Joined: 26 Sep 2007
|
Posted: Sun Nov 25, 2007 7:44 pm Post subject: |
|
|
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 |
|
 |
livinginkunsan

Joined: 02 Dec 2006
|
Posted: Mon Nov 26, 2007 3:30 pm Post subject: |
|
|
thank you guys for all the helpful responses. I figured it out  |
|
Back to top |
|
 |
|