Posts: 5
Threads: 2
Joined: Dec 2011
Reputation:
0
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
Posts: 719
Threads: 69
Joined: Nov 2010
Reputation:
76
01-09-2012, 04:34
(This post was last modified: 01-09-2012, 04:36 by master131.)
(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...
A casual conversation between barata and I about Nukem.
Posts: 3,054
Threads: 268
Joined: Feb 2011
Reputation:
63
can provide vb module for such shit, PM if needed
Posts: 5
Threads: 2
Joined: Dec 2011
Reputation:
0
(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.
Posts: 1,323
Threads: 24
Joined: Nov 2010
Reputation:
91
Do you even know what NOP means?
Posts: 6
Threads: 0
Joined: Dec 2012
Reputation:
0
12-15-2012, 01:52
(This post was last modified: 12-15-2012, 01:53 by Gam3rr0rZ.)
(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.
|