Directly call/jump in ASM without using relevance(x86)

后端 未结 2 1936
醉酒成梦
醉酒成梦 2021-01-14 17:12

I\'m injecting a c++ DLL into a game and I\'d like to hook a function to some of my own code. Since the DLL is mapped to a different location each time, It would be easier t

2条回答
  •  抹茶落季
    2021-01-14 17:57

    I never tried this kind of things,
    but I think you should use the offset from a known memory location of the game (to find with ollydbg) so every time you add this (fixed) offset to the (variable) address. This address could be, for example, the return address found at ss:ebp (since your function is called by the game) and the offset from that is computed with help of ollyDBG.

提交回复
热议问题