New to C++ and got a question.
I guess it is really simple but i am looking around for a few days now and could not find the answer or anything that i got working!
What i want is to change a JE to a JMP on run time.
So probably this has to be done by injecting a DLL.
I've got everything already out of the memory.
The memory addresses are down here.
1 2 3
00544B9B JE to JMP
00577D19 JE to JMP
0060C9C8 JE to JMP
Hope someone would like to help me create the DLL.
I've found a tutorial on another forum where they told that its just changing the JE to a JMP.
So thats all that has to be done, no calculating value length or something.
Although, their tutorial was based on OLLYDBG and then save, but the newer software is loading the values / entrypoints on run-time, so thats why i thought injecting a DLL will help me (=.
je is jump if equal, jmp is unconditional, I *think*.
this lets you ignore the condition and force calling something. Whether that is what you wanted or not, I do not know.
Unclear what you are doing ... it could be you just need to change an instruction in the binary to the other kind of jump? I dunno if a dll is what you want or not.
this isnt a c++ question, though.
And, we can't help you. You have something in mind, that you are in the middle of, and you told us like 0.01% of the info floating around in your head as to what you are trying to do here. I dunno if we can help you even if you told us everything you know, but I am confident we can't from what we have so far.
Alright.
What i want to do is change the memory of a running process on my computer.
I can not change the memory before the program is started, so what i would like to do is change it on run time.
If there isn't something in C++ that is able to do this, i have to try something else, but i think C++ is able to do that.
oh, it can. you may need to make the OS think your program is a debugger to do it, as accessing memory of another process is normally blocked by the OS.
memory isn't going to have 'je something' its going to have a cpu op-code. and its going to have a LOT of jumps, so you gotta find the exact one you want, or its relative offset (you seem to be on the way on that part). Then you have to swap the opcodes of the area you want. You may need to suspend the target before you do this.
so far it sounds like you need an executable that does this, not a dll at all.
any reason you can't change it in the executable file, or a copy thereof?