cookiemaster
March 1st, 2015, 13:35
The title is a bit unclear but I dont really know how to explain the problem in one line:
I have a program that connects to a server and I want to change what server it connects to with a separate program written in C.
I have located the the strings that need to be edited in a hex editor. The problem is that this program has many version that are often used so I would like to create a program that searches for the strings and replaces them.
I'm wondering if anyone knows a tutorial or if anyone could point me in the right direction(maybe there is some online documentation)
Thanks!
Edit: If its not possible(or easy), can I search the file before its executed, edit, then execute from within my program?
Also, I want to do it in C because I want to use it sort of as a learning experience and because I need it to run on Windows, Linux and MacOS.
I have a program that connects to a server and I want to change what server it connects to with a separate program written in C.
I have located the the strings that need to be edited in a hex editor. The problem is that this program has many version that are often used so I would like to create a program that searches for the strings and replaces them.
I'm wondering if anyone knows a tutorial or if anyone could point me in the right direction(maybe there is some online documentation)
Thanks!
Edit: If its not possible(or easy), can I search the file before its executed, edit, then execute from within my program?
Also, I want to do it in C because I want to use it sort of as a learning experience and because I need it to run on Windows, Linux and MacOS.