kralik
October 11th, 2009, 09:17
Hi,
I need to patch this dll, more precisely, I need to patch an exported function in this dll, lets call i function A.
However, in order to patch function A, I need some data that a function B works with. Those functions - A and B - have nothing in common, they dont call each other etc. I only know, that B gets called before A, so what I need is a global variable - a few bytes in this process's adress space, so I could patch function B making it write precious info in this global var,
and then I'd patch function A to retrieve this info and use it.
Now how do I go about finding such a free/unused space in adress space?
Thanks for any help!
I need to patch this dll, more precisely, I need to patch an exported function in this dll, lets call i function A.
However, in order to patch function A, I need some data that a function B works with. Those functions - A and B - have nothing in common, they dont call each other etc. I only know, that B gets called before A, so what I need is a global variable - a few bytes in this process's adress space, so I could patch function B making it write precious info in this global var,
and then I'd patch function A to retrieve this info and use it.
Now how do I go about finding such a free/unused space in adress space?
Thanks for any help!