RE: RE: creating an asm opcode
quote: Originally posted by effection
well thing is im overwriting an op code with an opcode that is bigger so its overwriting the following line which is a "call whereever" so at the end of my code it must be placed so the function is called.
Is there any way of doing this from a DLL in C(++) im pretty familiar with it but not with creating DLLs, i need to be able to hook the process so i can write memory to it or is there any better methods of doing this? I can then call this from wlmplus
The way I would think to do it is replace the last two operations you were doing with an operation to save the instruction pointer and an unconditional jump into free space. At the free space, do the two instructions you replaced before calling the function, which you can do now that you're not disturbing the regular instruction sequence.
was put impeccably into words at DebianDay for me last Saturday, by Knut Yrvin of Trolltech - adults try something once, fail, and then are like "ffs this doesn't work". Children try, fail, and then try again, and succeed - maybe on the second, or even fifth retry. But the thing is that they keep at it and overcome the problems in the end.
-andrewdodd13
|