Skip to content
Guest Big Announcement

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

Featured Replies

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 

Archived

This topic is now archived and is closed to further replies.

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.