u have code write protect memory.
like this
Code:
Public Declare Function VirtualProtectEx Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpAddress As Integer, ByVal dwSize As Integer, ByVal flNewProtect As Integer, <Out>ByRef lpflOldProtect As Integer) As Boolean
but how to use it?
or some body can give me sample to NOP function in vb.net?
thanks for helping
(01-09-2012, 03:23)reavenz Wrote: [ -> ]u have code write protect memory.
like this
Code:
Public Declare Function VirtualProtectEx Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpAddress As Integer, ByVal dwSize As Integer, ByVal flNewProtect As Integer, <Out>ByRef lpflOldProtect As Integer) As Boolean
but how to use it?
or some body can give me sample to NOP function in vb.net?
thanks for helping
Code:
Dim oldProtect As Integer = 0
Dim PAGE_EXECUTE_READWRITE As Integer = &H40
'TargetAddress is the address you want to write to such as &H12345
'BytesToWrite is how many bytes you are intended to write, for example if you are NOPing 10 bytes, you specify 10.
'If you are writing an Integer, you specify 4 since an Integer is 4 bytes long.
VirtualProtectEx(processHandle, TargetAddress, BytesToWrite, PAGE_EXECUTE_READWRITE, oldProtect) 'Unprotect the memory
'----- Peform whatever you need to do such as writing memory -------
'Restore the memory to protected again to prevent problems
VirtualProtectEx(processHandle, TargetAddress, BytesToWrite, oldProtect, 0)
Oh and by the way, NOP = &H90. Don't understand? Learn more about memory hacking first...
can provide vb module for such shit, PM if needed
(01-09-2012, 04:34)master131 Wrote: [ -> ] (01-09-2012, 03:23)reavenz Wrote: [ -> ]u have code write protect memory.
like this
Code:
Public Declare Function VirtualProtectEx Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpAddress As Integer, ByVal dwSize As Integer, ByVal flNewProtect As Integer, <Out>ByRef lpflOldProtect As Integer) As Boolean
but how to use it?
or some body can give me sample to NOP function in vb.net?
thanks for helping
Code:
Dim oldProtect As Integer = 0
Dim PAGE_EXECUTE_READWRITE As Integer = &H40
'TargetAddress is the address you want to write to such as &H12345
'BytesToWrite is how many bytes you are intended to write, for example if you are NOPing 10 bytes, you specify 10.
'If you are writing an Integer, you specify 4 since an Integer is 4 bytes long.
VirtualProtectEx(processHandle, TargetAddress, BytesToWrite, PAGE_EXECUTE_READWRITE, oldProtect) 'Unprotect the memory
'----- Peform whatever you need to do such as writing memory -------
'Restore the memory to protected again to prevent problems
VirtualProtectEx(processHandle, TargetAddress, BytesToWrite, oldProtect, 0)
Oh and by the way, NOP = &H90. Don't understand? Learn more about memory hacking first...
really2 thanks ur help
i newbie in game hacking, and i want to learn.
please teach me about NOP.. because i think in this room i can get knowledge.
only in here i get reply from another user
thanks..
Best Regards.
Do you even know what NOP means?
(01-12-2012, 08:16)zxz0O0 Wrote: [ -> ]Do you even know what NOP means?
You should learn basics of cheat engine, c++, and assembly language.
Want learn? Go over the Wikipedia, and search through forums --> click
here.
Greetings from Gam3rr0rZ.