Saturday, 8 May 2021

Code injection issue ~ I need help with vm_prot in my Tweak.xm (writeData.h)

Hello, I am having a hard time trying to figure out how to get rid of the virtual memory protection in an offset ~ I want to inject a negative value to an offset So ...I've tried using a method called CFSwapInt32 to swap the UINT to INT the only problem is when I compile my tweak it crashes the game instantly whenever I try to go to where I changed the offset in the game How do I know it's an unsigned int? I have been trying to inject the same code (with a negative value) without CFSwapInt32 and it doesn't crash the game but it brings the value to the max value of an unsigned int (even though I injected a negative number into the offset???) Also the negative number value is -999 I have the correct offset because I have tried injecting 0 to the offset and it worked but I now would like to change it to -999 Here is the hex code I am using ~ 0xC07C8012 (which is MOV W0, #-999) I have another hex code that I inject to return the function ~ 0xC0035FD6 (which is RET) So how do I approach this issue? It seems more complex than changing the uint to an int (because of the memory protection) How do I correctly use vm_prot to remove the memory protection? I am using a header in the Tweak.xm called "writeData.h" (where vm_prot is located) Also I am not familiar with using the vm_prot so that is where I need the most help THANK YOU

from iOSGods RSS Feed https://ift.tt/3xV0QmX

No comments:

Post a Comment