I need to change the connection string that is hard-coded in a single class for a program I created. I no longer have the original source code for the program in question, but I have decompiled it and have access to that.
I’ve tried re-compiling the decompiled source, but run into issues with the decompiled code being slightly different and requiring numerous changes. I’ve also tried recreating the class as a DLL without success. I think either of these approaches could work, but there is something I’m missing. Can anyone point me in the right direction, or suggest something simpler that I’m not thinking of?
If your corrected connection string is the same size or shorter than the old one, you should be able to edit the bytecode directly in a hex editor and overwrite the string with your new one. Just remember to change the string length and add
00 00at the end: