MJx0 / KittyMemory

This library aims for runtime code patching for both Android and iOS
MIT License
334 stars 113 forks source link

Error in MemoryPatch::createWithHex() #24

Closed slavadynasty closed 3 months ago

slavadynasty commented 10 months ago

The address is shifted 1000 ahead of the specified one. For example, I specified libProc + 0x277CFF4, but the data changed to 0x277BFF4. im using last version

MemoryPatch hashCheck = MemoryPatch::createWithHex(libProc, 0x277CFF4, "C0 07 00 B4 C0 07 00 B4 93 07 00 B4 93 07 00 B4");

MJx0 commented 9 months ago

page align is only used for mprotect and target address should not change. Im not able to reproduce this issue, if possible then provide an example code that i can test

JinxxBoom commented 7 months ago

Simply take RVA instead of Offset from the dump.cs file