i have the following problem, i have a game exe in this is e.g. this IP 127.0.0.1 <- String[9] i want to replace with 11.111.11.11 <- string[12]. With my code below it only replaces the first number of the old IP but not the complete IP... I found a way to replace the ip in the format string[9] so the last three characters are missing (.11)... i think of my code as something completely wrong... because i've been working with c++ for only about 2 weeks i hope someone from here can help me... Thanks
I don't know how to get this to work. Those zeroes are not necessarily unused space. The could be initial zero values for a variable.
What is the byte just before the first 31 above? If it's 09 then it probably represents the length of the string, which means that you would need to write the new length there as well. Maybe something like this:
This is Working:
strncpy((char*)Offset, "11.111.11.11", 12);
the Problem was, CheatEngine what i open first CE and scan for the old ip then hook, then its not possible to run beacause it is not changing the string length anymore..