I'm currently trying to gain some practice in RE and I need some help for patching a DLL.Here are my steps:I first analyze the main program and the dll in IDA trying to understand the logic. I then switch to OllyDBG for patching. Well, the problem is, since Olly dynamically loads the dll (in contrast to the static standalone analysis in IDA), the offsets are different and I don't know how to find the offset that I've inspected in IDA.Is there some easy way to rediscover the offset in the dll?Thanks in advance!
How to find offsets in OllyDBG from IDA
ida;ollydbg
If only the base is changed, but offsets are constant (as I'd guess is the case), you can just rebase the program in IDA. You can do so by edit->segments->Rebase program ... menu. Specifying the same starting base in IDA as is in Olly should help. Base may be different for numerous reasons, one of which might be ASLR.