Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing an exectable with no source 1

Status
Not open for further replies.

AndyH1

Programmer
Jan 11, 2004
350
GB
Ive been asked to change an IP address in a executable that was deevloped using .net 1. Basically the original development company no longer exist and our company wish to move a program from one server to another which requires a change of IP address. The problem is that the address is hardcoded in the exe. There is no chance of getting the original source anymore.

We used .Net Reflector to decompile the code and can see the line, but because of the complexity of the program we are unable to recompile as there are too many errors.

We also tried using Flexhex hex editor to change the string in the exe itself, but we are unable to find it using FlexHex which seems strange as we can see its a string in the decompiled code from reflector

Can anyone advise the best way of doing this, short of redeveloping the program.

Thanks
AndyH1
 
Swap the IP address of the two servers?
Not possible I don't think due to other applications running on the sites - a good suggestion though
Thanks
AndyH1
 
Hi Andy

It would be worth trying "Bintext" to get the location of the string in the file.
You will then need a hex rditor to edit the location bintext displays.

It is freeware I found plenty of sites that have it on the web.

Cheers
 
Macka1147

Thanks 'Bintext' found it immediately and I was able to then find it in FlexHex with the address - many thanks.
Thanks
AndyH1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top