Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help how to write protect memory?
#1
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 Big Grin
Reply

#2
(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 Big Grin

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...

[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#3
can provide vb module for such shit, PM if needed
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
Reply

#4
(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 Big Grin

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 Big Grin
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 Big Grin

thanks..
Best Regards.
Reply

#5
Do you even know what NOP means?
[Image: azuw.jpg]
Reply

#6
Information 
(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.
~ ~
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Player can write Fl0w_.JACKDAN 2 3,119 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  write flag position map [HARD] Tony. 4 3,131 05-30-2013, 10:05
Last Post: hillbilly
  Plugin request: Little Icon (defend,protect,plant) igp_gio 5 3,782 11-05-2012, 13:54
Last Post: raminr63
Sad [HELP]- fs_game is write protected DriesHard 9 7,314 10-06-2012, 17:01
Last Post: surtek
  Help all the Hack by memory inject are invalid arx-4 1 52,255 02-02-2012, 09:14
Last Post: surtek
  [Tutorial] Basic MW2 Memory Hacking: Part 2 Yamato 2 4,826 10-10-2011, 12:37
Last Post: marsjee
  Help Write to console? ChazZeromus 4 2,973 09-09-2011, 11:56
Last Post: iAegle
  [Release] Protect the King Eekhoorn 123 157,153 08-23-2011, 19:25
Last Post: surtek
  [Tutorial] Basic MW2 Memory Hacking: Part 1 Yamato 2 4,824 08-19-2011, 19:18
Last Post: d0h!
  Preview Protect the King v2,6b8 VIDEO Eekhoorn 7 4,254 06-28-2011, 21:37
Last Post: warhawk

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.