C# Class Memory.Mem.SigScan

Show file Open project: erfg12/memory.dll

Public Methods

Method Description
FindPattern ( byte btPattern, string strMask, int nOffset ) : IntPtr

FindPattern Attempts to locate the given pattern inside the dumped memory region compared against the given mask. If the pattern is found, the offset is added to the located address and returned to the user.

ResetRegion ( ) : void

ResetRegion Resets the memory dump array to nothing to allow the class to redump the memory.

SigScan ( ) : System
SigScan ( Process proc, UIntPtr addr, int size ) : System

Private Methods

Method Description
DumpMemory ( ) : bool

DumpMemory Internal memory dump function that uses the set class properties to dump a memory region.

MaskCheck ( int nOffset, IEnumerable btPattern, string strMask ) : bool

MaskCheck Compares the current pattern byte to the current memory dump byte to check for a match. Uses wildcards to skip bytes that are deemed unneeded in the compares.

ReadProcessMemory ( IntPtr hProcess, UIntPtr lpBaseAddress, [ lpBuffer, int dwSize, int &lpNumberOfBytesRead ) : bool

Method Details

FindPattern() public method

FindPattern Attempts to locate the given pattern inside the dumped memory region compared against the given mask. If the pattern is found, the offset is added to the located address and returned to the user.
public FindPattern ( byte btPattern, string strMask, int nOffset ) : IntPtr
btPattern byte Byte pattern to look for in the dumped region.
strMask string The mask string to compare against.
nOffset int The offset added to the result address.
return System.IntPtr

ResetRegion() public method

ResetRegion Resets the memory dump array to nothing to allow the class to redump the memory.
public ResetRegion ( ) : void
return void

SigScan() public method

public SigScan ( ) : System
return System

SigScan() public method

public SigScan ( Process proc, UIntPtr addr, int size ) : System
proc Process
addr UIntPtr
size int
return System